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"
/>