Disable DataPager from code behind

2 posts, 0 answers
  1. Greg
    Greg avatar
    23 posts
    Member since:
    Sep 2008

    Posted 06 Nov 2015 Link to this post

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

  2. Stefan
    Stefan avatar
    799 posts

    Posted 11 Nov 2015 Link to this post

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