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

Non-Editable Node Labels

3 Answers 62 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Marbry
Top achievements
Rank 1
Marbry asked on 18 Jul 2011, 03:54 PM
Is there is a way (other than building static images for each specific one) to create a non-editable label on individual nodes?

So that following the pattern,

Item 1
    Property 1:  property1 value
    Property 2:  property2 value

Where the 'property1 value' is the actual text of the node, and "Property 1:" is the node 'label'.  Such that when the user elects to edit that property, they're only editing the text of "property1 value", not the label.

3 Answers, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 19 Jul 2011, 04:18 PM
Hello Marbry,

You will have to use a template. Please have a look at our Templates demo.

Regards,
Plamen Zdravkov
the Telerik team

Register for the Q2 2011 What's New Webinar Week. Mark your calendar for the week starting July 18th and book your seat for a walk through of all the exciting stuff we will ship with the new release!

0
Marbry
Top achievements
Rank 1
answered on 19 Jul 2011, 04:27 PM
Thank you Plamen, I was hoping there was a simple node property to do that, but I'll take a look at the templates.
0
Marbry
Top achievements
Rank 1
answered on 20 Jul 2011, 10:09 PM
I resolved this.  Since I have about 20 different templates, I created a single function that reinstantiates all of them.  Then I can simply call that when the tree is built initially and when any postback is made.
Tags
TreeView
Asked by
Marbry
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Marbry
Top achievements
Rank 1
Share this question
or