Hi,
I'm using your RadDataPager inside my custom control. I've created a class containing ItemsCount dependency property, that stores total items returned by service and I've bound it with RadDataPager.ItemCount property.
It works well for first load, for instance if ItemsCount is 73 RadDataPager shows 8 pages. But when I've changed ItemsCount value to 6 the number of pages does not change.
I've used approach similar to ObjectDataSource in ASP.NET because query that returns items collection is quite heavy, so I've decided to make SQL paging using windowed query and count all items using other query. Could you help me to solve my problem? I'm using RadControls for Silverlight Q2 2010 SP1.
Best regards
Mirosław Piątkowski
I'm using your RadDataPager inside my custom control. I've created a class containing ItemsCount dependency property, that stores total items returned by service and I've bound it with RadDataPager.ItemCount property.
<
telerik:RadDataPager
x:Name
=
"DataPager"
DisplayMode
=
"FirstLastPreviousNextNumeric, Text"
ItemCount
=
"{Binding ItemsCount, RelativeSource={RelativeSource TemplatedParent}}"
PageSize
=
"10"
IsTotalItemCountFixed
=
"True"
/>
It works well for first load, for instance if ItemsCount is 73 RadDataPager shows 8 pages. But when I've changed ItemsCount value to 6 the number of pages does not change.
I've used approach similar to ObjectDataSource in ASP.NET because query that returns items collection is quite heavy, so I've decided to make SQL paging using windowed query and count all items using other query. Could you help me to solve my problem? I'm using RadControls for Silverlight Q2 2010 SP1.
Best regards
Mirosław Piątkowski