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

TreeView Edit, LostFocus Event Problems

1 Answer 103 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Baskar
Top achievements
Rank 1
Baskar asked on 16 Sep 2011, 12:48 PM
Dear Experts

Am using RadTreeView Control. i am trying to add ,Edit and Delete a node dynamically.
am able to add ,edit and delete the node in the treeview, but the problem am facing is

1. sometimes when i select the node and click Add, its not showing in EditMode to enter the "Node Name".  (This case happens ocassionally, but when i kept the breakpoint and traverse the code, its working fine. thatsy i couldnt able to find out)
2. Sometimes the Header text is gets disabled (i.e Text is Empty) when we traverse the node in the treeview
3. i selected the node to add childnode below that. But the selected item says "null".
4. i have implement add, Edit functionality in Lost_Focus Event, once a movement i added a node, and select any node in the treeview, The Lost_Focus event  is fires 2 to 3 times

 Thanks in Advance

Regards,
Baskar

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 21 Sep 2011, 04:29 PM
Hi Baskar,

Thank you for contacting us.

1. Could you please try setting the Edit mode in a Dispatcher.

For 2,3 and 4: I am not sure how you traverse and select tree items. Also I don't think that LostFocus is the most appropriate event.

Could you please send me a sample project reproducing the issues and demonstrating you scenario. This way I will be able to assist you faster and more appropriately.

Thank you for your cooperation.

Greetings,
Kiril Stanoev
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TreeView
Asked by
Baskar
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or