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

ContainerBinding - force update

1 Answer 51 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Trude
Top achievements
Rank 2
Trude asked on 02 Nov 2012, 01:16 PM
I'm using a treeview with containerbinding. One of the properties in the collection is CheckState which is two way bound to my data collection. I need to do some processing when the Check/Uncheck event fires, but when a user checks/unchecks a checkbox the event is fired before the data itself is updated. Is there a way around this? I'm thinking about forcing an update of the binding, but I don't know how to retrieve the binding expression of the checkbox.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 07 Nov 2012, 01:51 PM
Hi Jorn,

Can you process the data in your view model entirely? This is the best approach in an MVVM application. I am not sure what exactly is your logic, but you can take a  look at this tutorial demonstrating how to implement a tri-state check box logic entirely in the view models. You can use similar approach in your application as well.

Regards,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Trude
Top achievements
Rank 2
Answers by
Tina Stancheva
Telerik team
Share this question
or