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

DataPager next button is always active

1 Answer 101 Views
DataPager
This is a migrated thread and some comments may be shown as answers.
bhavik
Top achievements
Rank 1
bhavik asked on 16 Aug 2011, 08:29 AM
Hi,

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.

Regards,
Bhavik.

1 Answer, 1 is accepted

Sort by
0
Accepted
Vanya Pavlova
Telerik team
answered on 16 Aug 2011, 09:11 AM
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. 


Regards,
Vanya Pavlova
the Telerik team

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

Tags
DataPager
Asked by
bhavik
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or