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

How to group programatically after data is loaded?

1 Answer 80 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Joshua
Top achievements
Rank 1
Joshua asked on 06 Apr 2011, 11:41 PM
I've tried to change groupings in the dataloaded event but I get an error message:
"Cannot change ObservableCollection during a CollectionChanged event."

1 Answer, 1 is accepted

Sort by
0
Yavor Georgiev
Telerik team
answered on 07 Apr 2011, 05:13 AM
Hi Joshua,

 DataLoaded fires after the grid loads the grouped data as well, so the exception here is a warning that you can enter an infinite loop. You just need to unsubscribe from the DataLoaded event at the end of your event handler so that the code inside will be executed only the first time the even fires.

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
Tags
GridView
Asked by
Joshua
Top achievements
Rank 1
Answers by
Yavor Georgiev
Telerik team
Share this question
or