Karl Farrand
Top achievements
Rank 1
Karl Farrand
asked on 01 Jun 2010, 12:05 PM
I am using Silverlight GridView v2010.1.309.1030
This is bound to the RadDataPager so I can have paging on the DataGrid.
I allow grouping on the GridView.
The application is built using MVVM and both the DataPager and the GridView are bound to properties in a ViewModel.
The pager works fine until I group a field.
Then all the records end up on one page. (ie the pager does not work).
Is there any way to make sure the paging functionality remains in place?
Thanks
Karl
5 Answers, 1 is accepted
0
Hello Karl Farrand,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
How is your data binding set up? Usually you bind your RadDataPager to your actual data, and then bind the RadGridView to the pager's PagedSource property.
Greetings,Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Karl Farrand
Top achievements
Rank 1
answered on 01 Jun 2010, 09:27 PM
Hi,
That is correct, bindings below.
<telerikGridView:RadDataPager
x:Name="radDataPager1"
Source="{Binding Benefits}"
PageSize="50"
DisplayMode="All"/>
<telerikGridView:RadGridView
ItemsSource="{Binding PagedSource, ElementName=radDataPager1}"
ScrollViewer.VerticalScrollBarVisibility="Hidden"
RowIndicatorVisibility="Collapsed"
SelectedItem="{Binding CurrentItem, Mode=TwoWay}"
x:Name="radGridView1"
CanUserInsertRows="False"
CanUserDeleteRows="False"
ShowColumnFooters="True" >
0
Hi Karl Farrand,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
I'm unable to reproduce your problem. I'm attaching a sample solution. Could you please try to reproduce your problem in it so that we may debug it?
Kind regards,Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
Karl Farrand
Top achievements
Rank 1
answered on 02 Jun 2010, 12:56 PM
Hi,
I have altered the sample.
Can't seem to upload zip so it can be downloaded from here
I have attached screenshots of the issue.
Step 1 shows a grid paged with 25 records per page.
Step 2 shows same grid grouped by 'Name' and paging has gone (ie there is only 1 page)
Thanks for your help.
0
Hello Karl Farrand,
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Unfortunately we do not support paging for such a large dataset, because the behavior would be too ambiguous: should the grid group only the items in the current page, or group all the items and have the pager split one group in several pages?
Please let me know if you are interested in implementing the first option (group only the items on the current page) and I shall try to help you do it as best as I can.
Yavor Georgiev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.