RADGRID PAGESIZECOMBOBOX IS NOT FINDING

jayprakash sharma

Total Post:117

Points:821
Posted by  jayprakash sharma
C#
 1273  View(s)
Ratings:
Rate this:

The PageSizeComboBox of radgrid giving me null result either in ItemDataBound Event or any other event. I need to get the selected value of RadGrid PageSizeComboBox. What should I do to get PageSizeComboBox

here is my code written in ItemDataBound event of Grid

 if (e.Item is GridDataItem)

     {

                RadComboBox PageSizeCombo = e.Item.FindControl("PageSizeComboBox") as RadComboBox;

     }

I need to get this control. I want to get it on my Button Click event also. Can any one help ?

  1. Sumit Kesarwani

    Post:378

    Points:2694
    Re: RadGrid PageSizeComboBox is not finding

    Hi jay, 

    try this:


    if (e.Item is GridPagerItem) 

        {    

            GridPagerItem pagerItem = (GridPagerItem)e.Item; 

            RadComboBox PageSizeCombo = (RadComboBox)pagerItem.FindControl("PageSizeComboBox"); 

            // Access ComboBox here  

        }

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!