or
.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
private void AppointmentEditingHandler(object sender, AppointmentEditingEventArgs e) { try {... var appointment = e.Appointment;... var radScheduleView = (RadScheduleView)e.Source; appointment.BeginEdit(); appointment.Start = newStartDateTime; appointment.End = newStopDateTime; appointment.Subject = courseTypeToString; appointment.EndEdit(); radScheduleView.Commit(); e.Handled = true;
e.Cancel = true; e.RoutedEvent = null;}catch (exception ex){}const string xaml = "<DataTemplate>" + "<ComboBox Tag=\"{0}\" IsEnabled=\"{{Binding Path=IsEnabled, RelativeSource={{RelativeSource FindAncestor, AncestorType=telerik:GridViewCell}}}}\" />" + "</DataTemplate>";string dataTemplateXaml = string.Format(xaml, fieldIndex);