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

Problems with binding to PagedSortableCollectionView

3 Answers 33 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Przemyslaw
Top achievements
Rank 1
Przemyslaw asked on 19 Mar 2010, 01:33 PM
Hi,

I have upgraded to Q1 2010 and have started experiencing this phenomenon.

I set the ItemsSource property to PagedSortableCollectionView<MyType> and populate it with a web request. The application virtualy disappears. Application_UnhandledException in the App class is not fired. All I get is a blank screen.

I set the ItemsSource property to an ObservableCollection<MyType> and populate it in exactly the same manner as above . Everyting is ok (except for that I get a collection of a couple hundret elements).

This problem did not occur before upgrading to Q1
When I replace RadGridView with DataGrid there is also no problem

Is RadGridView working with PagedSortableCollectionView and are there any particular settings that should be used?

Regards, Przemek

 

3 Answers, 1 is accepted

Sort by
0
Stefan Dobrev
Telerik team
answered on 22 Mar 2010, 04:33 PM
Hello Przemyslaw,

The problems comes from the fact that PagedSortableCollectionView is not correctly implementing the grouping logic in ICollectionView interface. As of 2010 Q1 we are syncing the grid's group descriptors to the underlying group descriptions if the source collection implements ICollectionView and this results in an exceptoin thrown by PagedSortableCollectionView.

Please find attached an updated version of PagedSortableCollectionView which has a dummy implementation of grouping and works correctly with RadGridView.

Hope this helps,
Stefan Dobrev
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
Ganesh Shivshankar
Top achievements
Rank 1
answered on 08 Apr 2011, 04:44 AM
Hi,

Can you please let me know how to get the SortDescriptors to work with PagedCollectionView? I set the sort descriptor when instantiating teh collection. But in the Refreshed event it seems to reset it to a empty SortDescriptions collection.

Cheers,
Ganesh
0
Ganesh Shivshankar
Top achievements
Rank 1
answered on 08 Apr 2011, 06:44 AM
Actually ignore this. I realised my mistake. I had not specified the SortmemberPath for the TemplateColumn. It works now.

Thanks.
Tags
GridView
Asked by
Przemyslaw
Top achievements
Rank 1
Answers by
Stefan Dobrev
Telerik team
Ganesh Shivshankar
Top achievements
Rank 1
Share this question
or