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

Grid PageSize Selector

3 Answers 91 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Brian Mains
Top achievements
Rank 1
Brian Mains asked on 26 May 2010, 05:28 PM
Hello,

The page size selector drop down in the grid I would like to turn off.  What setting does that?  I'm explicitly setting the page size to 25, and don't really care to give the user options...

Thanks.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 27 May 2010, 05:45 AM
Hello Brian,

If you want to remove the ComBoBox in Pager item, you can add the following CSS in your page.

CSS:
 <style type="text/css"
        .RadGrid .rgPager .RadComboBox, .RadGrid .rgPagerLabel 
        { 
            displaynone !important; 
        } 
 </style> 

Regards,
Shinu.
0
Marcelo Balbuena
Top achievements
Rank 1
answered on 10 Aug 2011, 11:14 AM
Hello,

What if I have more than one RadGrid in the page/usercontrol and I'd like this behavior in only one of them?

Thanks a lot,
0
Shinu
Top achievements
Rank 2
answered on 10 Aug 2011, 11:41 AM
Hello Marcello,

Try setting the CSSClass for the RadGrid as show below.
aspx:
<telerik:RadGrid ID="RadGrid1"  runat="server" CssClass="hide">
.  .  .  .
</telerik:RadGrid>
CSS:
<style type="text/css">
.hide.RadGrid .rgPager .RadComboBox, .RadGrid .rgPagerLabel
 {
   display:none !important ;
 }
</style> 

Thanks,
Shinu.
Tags
Grid
Asked by
Brian Mains
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Marcelo Balbuena
Top achievements
Rank 1
Share this question
or