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

[Solved] RadDataGrid: is there a DataGridCommand to​ use for handling binding data updates?

1 Answer 69 Views
Grid for XAML
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yuri
Top achievements
Rank 1
Yuri asked on 19 Jun 2013, 04:19 PM
I’ve got a RadDataGrid with its ItemsSource set through binding.
In its Commands section it has a custom command whose Id is set to CommandId.DataBindingComplete. This is fine, and the command gets executed when the control is first loaded and the binding is finalized.
But any subsequent update of the binding source data does not cause this command to fire.
 
What I am trying to achieve is having all the groups collapsed when the data is loaded.
As mentioned above, this works the first time, but if the data is refreshed after the control has already been loaded all the groups are shown expanded.
How can I have the collapsed?

1 Answer, 1 is accepted

Sort by
0
Ivaylo Gergov
Telerik team
answered on 21 Jun 2013, 03:24 PM
Hello Yuri,

Thank you for your question.

Indeed, the DataBindingCompleteCommand does not fire when the CollectionChanged event is raised. However, this makes perfect sense, so the functionality of the command will be extended in our upcoming build that will be available next week. 

Thank you for your time and valuable feedback. I have also updated your Telerik points.

 

Regards,
Ivaylo Gergov
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
Grid for XAML
Asked by
Yuri
Top achievements
Rank 1
Answers by
Ivaylo Gergov
Telerik team
Share this question
or