ContainerBinding - force update

2 posts, 0 answers
  1. Trude
    Trude avatar
    222 posts
    Member since:
    Jun 2009

    Posted 02 Nov 2012 Link to this post

    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.
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 07 Nov 2012 Link to this post

    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.

    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top