Custom EditCell base of leaf line on a single column

2 posts, 0 answers
  1. Dario
    Dario avatar
    61 posts
    Member since:
    Apr 2011

    Posted 31 Jul 2012 Link to this post

    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?
  2. Tsvetina
    Tsvetina avatar
    2087 posts

    Posted 03 Aug 2012 Link to this post

    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:

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

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