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

Editing Is not Working

1 Answer 57 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
smith
Top achievements
Rank 1
smith asked on 27 Aug 2009, 02:54 PM
HI

 I am using Treeview with mVVM model Data Binding once i load the data in treeview then editing the Data using F2 that time it is is showing Binding object name in the box ., how to Edit tthe NOde 
http://blogs.telerik.com/KirilStanoev/Posts/08-08-27/Populating_Silverlight_TreeView_from_WCF_Service_with_LINQ_to_SQL.aspx
i seen  this above Link and downloaded that code there also same problem.
one more question is

i am using rad context menu if i am adding the new node i need to check the whole tree view nodes while adding node is there or not if it is there need to through error
how to itratively lopp ?

Regards
smith

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 28 Aug 2009, 04:39 PM
Hi smith,

You need to set the ItemEditTemplate to a DataTemplate that contains the controls (a TextBox for example) that you like to apppear in the TreeView during editing. There you can bind it to whichever property you need.

An example is available in this thread:

http://www.telerik.com/community/forums/silverlight/treeview/node-editing-example.aspx

If I understand your second question correctly, you will be able to use the ItemPrepared event of the TreeView to get the new item that had just been added. Please note that you may need to expand the parent of this item for it to be generated and prepared.

Greetings,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
smith
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or