This is a migrated thread and some comments may be shown as answers.

[Solved] How to show/hide the Pager style combo box?

3 Answers 174 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Meenakshi Nagalingam
Top achievements
Rank 1
Meenakshi Nagalingam asked on 24 Aug 2009, 06:44 AM
Hi,

In the PagerStyle settings of RAD Grid Q2 2009 release version, a combo box is getting displayed to modify the page size dynamically. I don't want to show the combo box to the end-user. May i know how to show/hide that combo box using any available property or style sheet?

Thanks in advance.

3 Answers, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 24 Aug 2009, 07:10 AM
Hi Meenakshi,

There are two ways to hide the pager RadComboBox and the solutions are available in several places in our forums:

http://www.telerik.com/community/forums/aspnet-ajax/grid/grid-skin-for-vista-and-page-size-combobox.aspx#788526

http://www.telerik.com/community/forums/aspnet-ajax/grid/how-to-remove-quot-page-size-quot-dropdown.aspx#848785


Sincerely yours,
Dimo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Accepted
Shinu
Top achievements
Rank 2
answered on 24 Aug 2009, 07:17 AM
Hello Meenakshi,

You can either try out the following css style or code to hide the RadComboBox in the pager row:
css:
.rgPager .rgAdvPart   
   {   
    displaynone
   } 

c#:
protected void RadGrid1_ItemCreated(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridPagerItem) 
        { 
            GridPagerItem pager = (GridPagerItem)e.Item; 
            Label lbl = (Label)pager.FindControl("ChangePageSizeLabel"); 
            lbl.Visible = false
            RadComboBox combo = (RadComboBox)pager.FindControl("PageSizeComboBox"); 
            combo.Visible = false
        }        
    } 

Thanks
Shinu.
0
Meenakshi Nagalingam
Top achievements
Rank 1
answered on 24 Aug 2009, 09:00 AM
Thanks Shinu, Both the options helped me a lot.
Tags
Grid
Asked by
Meenakshi Nagalingam
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Shinu
Top achievements
Rank 2
Meenakshi Nagalingam
Top achievements
Rank 1
Share this question
or