TreeView Node Editing

4 posts, 0 answers
  1. David McCarter
    David McCarter avatar
    4 posts
    Member since:
    Feb 2010

    Posted 18 Apr 2011 Link to this post

    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
  2. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 20 Apr 2011 Link to this post

    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
  3. UI for WinForms is Visual Studio 2017 Ready
  4. David McCarter
    David McCarter avatar
    4 posts
    Member since:
    Feb 2010

    Posted 20 Apr 2011 Link to this post

    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

  5. Jack
    Admin
    Jack avatar
    2335 posts

    Posted 22 Apr 2011 Link to this post

    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
Back to Top