Hide pager controls

5 posts, 0 answers
  1. Kalyani
    Kalyani avatar
    20 posts
    Member since:
    Jul 2011

    Posted 11 Apr 2014 Link to this post

    Is there any way to hide the pager control in a rad pivot grid.  I see that it is possible in normal grid but I am not sure how to do this in a pivot grid.

    Thanks
  2. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 14 Apr 2014 Link to this post

    Hi Kalyani,

    The paging functionality of RadPivotGrid can be enabled by setting the AllowPaging property to true, if you set this property to false you should not see the pager. In case you are asking for a different behavior, please elaborate a bit more what is the condition which determines the pager visibility.

    Regards,
    Pavlina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kalyani
    Kalyani avatar
    20 posts
    Member since:
    Jul 2011

    Posted 14 Apr 2014 in reply to Pavlina Link to this post

    I wanted something like this - 

    Protected Sub RadGrid1_PreRender(sender As Object, e As EventArgs)    
     If RadGrid1.EditIndexes.Count > 0 OrElse RadGrid1.MasterTableView.IsItemInserted Then         For Each item As GridItem In RadGrid1.MasterTableView.GetItems(GridItemType.Pager)      
           item.Enabled = False        
     Next    
     End If 
    End Sub
  5. Pavlina
    Admin
    Pavlina avatar
    6084 posts

    Posted 17 Apr 2014 Link to this post

    Hi Kalyani,

    To disable PivotGrid pager on the server you can handle on PivotGrid PreRender event access the pager item and set its Enabled property to false as shown below:
    Protected Sub RadPivotGrid1_PreRender(sender As Object, e As EventArgs) Handles RadPivotGrid1.PreRender
               For Each item As PivotGridItem In RadPivotGrid1.Items
                   If item.ItemType = PivotGridItemType.PagerItem Then
                       item.Enabled = False
                   End If
               Next
           End Sub

    Regards,
    Pavlina
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  6. Kalyani
    Kalyani avatar
    20 posts
    Member since:
    Jul 2011

    Posted 17 Apr 2014 in reply to Pavlina Link to this post

    Worked great.  

    Thank you 
    Kalyani
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017