.xaml:
<ListBox Name=
"itemsControl"
ItemsSource=
"{Binding PagedSource, ElementName=radDataPager}"
/>
<telerik:RadDataPager Name=
"radDataPager"
Height=
"30"
VerticalAlignment=
"Bottom"
Source=
"{Binding myItemsSource}"
PageSize=
"10"
DisplayMode=
"All"
/>
.cs:
List<
string
> list =
new
List<
string
>();
for
(
int
i = 0; i < 36; i++)
{
list.Add(i.ToString());
}
this
.radDataPager.Source = list;
Hi,
Now I got a problem that using ListBox with RadDataPager,When turn the lastpage to previouspage(for example,the last page only have 1 item),the previouspage's itemcount turn to 1,how could I fix that?Here is a demo code above,with telerik 2010 Q2,Thanks.
Best Wishes,
Sky