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

Custom EditCell base of leaf line on a single column

1 Answer 29 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Dario
Top achievements
Rank 2
Dario asked on 31 Jul 2012, 02:12 PM
Hi to all,
How can I do to create a TreeList that has:
First column : treview structure (this is simple, ok)
Second column: must read only
Third column: must edit mode, BUT only for line that is leaf of current node (relative of first column)

Can I do this?

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 03 Aug 2012, 08:13 AM
Hello Dario,

You could try looping all TreeListDataItems (RadTreeList1.Items) in PreRender and check which of them should be put in edit mode. For these that fit the condition, add their HierarchIndex property value to the EditIndexes collection of the treelist:
RadTreeList1.EditIndexes.Add(item.HierarchyIndex);

Finally, rebind the RadTreeList to put the items in edit mode.

Greetings,
Tsvetina
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
TreeList
Asked by
Dario
Top achievements
Rank 2
Answers by
Tsvetina
Telerik team
Share this question
or