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

Hide pager controls

4 Answers 46 Views
PivotGrid
This is a migrated thread and some comments may be shown as answers.
Kalyani
Top achievements
Rank 1
Kalyani asked on 11 Apr 2014, 05:43 PM
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

4 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 14 Apr 2014, 12:50 PM
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.

 
0
Kalyani
Top achievements
Rank 1
answered on 14 Apr 2014, 03:46 PM
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
0
Pavlina
Telerik team
answered on 17 Apr 2014, 03:00 PM
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.

 
0
Kalyani
Top achievements
Rank 1
answered on 17 Apr 2014, 04:43 PM
Worked great.  

Thank you 
Kalyani
Tags
PivotGrid
Asked by
Kalyani
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Kalyani
Top achievements
Rank 1
Share this question
or