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

EndEdit not firing from TreeViewItem editing

3 Answers 65 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tarun
Top achievements
Rank 1
Tarun asked on 24 Aug 2011, 08:59 PM
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 ?

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 29 Aug 2011, 12:16 PM
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 >>

0
Tarun
Top achievements
Rank 1
answered on 29 Aug 2011, 02:38 PM
I did start a support ticket but did not get much help
http://www.telerik.com/account/support-tickets/view-ticket.aspx?threadid=457819
0
Petar Mladenov
Telerik team
answered on 01 Sep 2011, 09:05 AM
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 >>

Tags
TreeView
Asked by
Tarun
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Tarun
Top achievements
Rank 1
Share this question
or