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

TreeView Node Editing

3 Answers 74 Views
Treeview
This is a migrated thread and some comments may be shown as answers.
David McCarter
Top achievements
Rank 1
David McCarter asked on 18 Apr 2011, 05:40 PM
I'm not able to to get a TreeView node to edit. Here is my code:

var node = new RadTreeNode(k.Key);
node.ImageIndex = (int)IconsEnum.Key;
node.EditMode = EditMode.Value;

I want to edit the value. What am I missing. I do have the TreeView to allow editing.

Thanks,
David McCarter

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 20 Apr 2011, 11:49 AM
Hello David McCarter,

You should call the BeginEdit method of RadTreeView to initiate the editing process. Find more information in our online documentation.

Do not hesitate to contact us if you have any additional questions.
 
Kind regards,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
David McCarter
Top achievements
Rank 1
answered on 20 Apr 2011, 08:35 PM
Thanks, I figured it out. Just didn't think I needed that if I have the RadTreeView and RadTreeNode properties set correctly.

Have two more questions/ issues:

  1. Why doesn't the RadTreeView have a border style?
  2. Why does the text disappear when editing a nodes value?

Thanks,
David McCarter

0
Jack
Telerik team
answered on 22 Apr 2011, 02:00 PM
Hi David,

I am glad to hear that you have solved this issue. Regarding your questions:

1. It depends on the theme. You can customize almost every aspect of RadTreeView and all our controls by using the Visual Style Builder tool. Actually, the control has a blue border in its default theme. Could you please specify where you want to add a border?

2. We hide the text for a better readability. The node layout is fully customizable and you can add your own elements where you can show custom texts.

I hope this helps. If you have any further questions, do not hesitate to ask.
 
Regards,
Jack
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Treeview
Asked by
David McCarter
Top achievements
Rank 1
Answers by
Jack
Telerik team
David McCarter
Top achievements
Rank 1
Share this question
or