DataPager next button is always active

2 posts, 1 answers
  1. bhavik
    bhavik avatar
    7 posts
    Member since:
    Feb 2011

    Posted 16 Aug 2011 Link to this post


    I am having a DataPager control which I have bound to a Property in ViewModel. This property basically keeps both the Grid and the pager in sync. I am doing this since I am doing Server side paging for Grid.

    As you can see in Screenshot, I see that the DataPager's next button is always active and enabled. This is giving a wrong inpression to the users.

    Following is the code I am using ->
    <telerik:RadDataPager Height="40" x:Name="pagerSearchResultsTop"
    DisplayMode="FirstLastPreviousNextNumeric" AutoEllipsisMode="Both"
    PageSize="{Binding PageSize, Mode=TwoWay}"
    PageIndex="{Binding PageIndex, Mode=TwoWay}"
    ItemCount="{Binding ItemCount, Mode=TwoWay}" telerik:StyleManager.Theme="Windows7"/>

    Can you please please help me resolve this issue.

  2. Answer
    Vanya Pavlova
    Vanya Pavlova avatar
    2019 posts

    Posted 16 Aug 2011 Link to this post

    Hello Bhavik,

    The behavior you get is the expected one. Next button is always enabled due to the async nature of silverlight data fetching. You may disable this behavior through setting IsTotalItemCountFixed property of RadDataPager to True. 

    Vanya Pavlova
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get now >>

  3. DevCraft R3 2016 release webinar banner
Back to Top