Grid PageSize Selector

4 posts, 0 answers
  1. Brian Mains
    Brian Mains avatar
    485 posts
    Member since:
    Oct 2008

    Posted 26 May 2010 Link to this post

    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.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 27 May 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Marcelo Balbuena
    Marcelo Balbuena avatar
    4 posts
    Member since:
    Jan 2007

    Posted 10 Aug 2011 Link to this post

    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,
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 10 Aug 2011 Link to this post

    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.
Back to Top