EndEdit not firing from TreeViewItem editing

4 posts, 0 answers
  1. Tarun
    Tarun avatar
    16 posts
    Member since:
    Jan 2011

    Posted 24 Aug 2011 Link to this post

    I have a class (lets say CAR) that implements IEditableObject. If i bind a collection of cars to a datagrid, on editing a car, EndEdit on CAR is fired. However, my cars collection is displayed in a treeview. When i edit a CAR using the controls in my treeviewitem , the EndEdit is not raised. It's driving me crazy. Any clues ?
  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 29 Aug 2011 Link to this post

    Hi Tarun,

     Is it suitable for you to use the ItemEditTemplate of the RadTreeView in conjunction with the Edited event ?You can find a good starting article here.
     If not, could you please send us some code snippets or open a new support thread so that you will be able to attach files. This way we would be better able to assist you . Thank you in advance.

    Kind regards,
    Petar Mladenov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Tarun
    Tarun avatar
    16 posts
    Member since:
    Jan 2011

    Posted 29 Aug 2011 Link to this post

    I did start a support ticket but did not get much help
    http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=457819
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 01 Sep 2011 Link to this post

    Hello Tarun,

    The EndEdit() fires automatically in a DataGridView but it is not supposed to fire automatically in TreeView or RadTreeView. You can check out this blog post for more info.
    I strongly recommend you to use the RadTreeView and its Edit events which work out of the box. Or if you insist on working with the ViewModels only, you can use commands as a connection to the ViewModels' code. 
    Please let us know if you need further assistance on this.

    Best wishes,
    Petar Mladenov
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Back to Top