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

Disable DataPager from code behind

1 Answer 122 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Greg
Top achievements
Rank 2
Greg asked on 07 Nov 2015, 12:50 AM

We need to be able to enable or disable a DataPager associated with a GridView when the window loads (some users want it and other don't). I have tried setting the visibility to collapsed, setting IsEnabled to false and setting Source to null in the window constructor. None of these work. The pager isn't visible but the grid only shows the first page of data. The grid's ItemsSource is bound to an ObservableCollection and is populated in the Window_Loaded event. Here is the relevant xaml:

</telerik:RadGridView>
                       <telerik:RadDataPager x:Name="DpEvents" Grid.Row="2" Source="{Binding Items, ElementName=grdEvent}" PageSize="18"
                                             DisplayMode="All" AutoEllipsisMode="Both" NumericButtonCount="10" IsTotalItemCountFixed="True" />

1 Answer, 1 is accepted

Sort by
-1
Stefan
Telerik team
answered on 11 Nov 2015, 12:35 PM
Hello Greg,

I have already replied you in the other ticket you submitted on this requirement(ID: 986465).

In order to avoid double posting, I would kindly ask you to continue any further communication regarding this topic in it.

Best Regards,
Stefan X1
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
GridView
Asked by
Greg
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Share this question
or