RadTreeList As Edit Form

2 posts, 0 answers
  1. Chip
    Chip avatar
    3 posts
    Member since:
    Jul 2011

    Posted 25 Jul 2011 Link to this post

    I'm new to Telerik and feel like I'm trying to do something advanced for my first real assignment.  What I'm trying to do is use a RadTreeList to manage options for a item where the entire list will be in edit mode (from the start and only used in edit mode).  I'd like to be able to use the select column to allow for recursive selections and I would like to have text boxes with the detailed items at the "base" of the tree.  I've tried to give an example below, but I don't know that it does what I need justice.

    Another important factor is that this RadTreeList appears within a (pop-up) UserControl that is the Edit for a RadGrid.

    Let me know if you need anything else to assist with my question.  Thank you.

    Checkbox     Top Level     Sub Level   Item   TextBox1   TextBox2
    [Checkbox]   Top Level 1
    [Checkbox]                       Sub Level 1
    [Checkbox]                                          ABC   [Textbox]   [Textbox]
    [Checkbox]                                          EDF   [Textbox]   [Textbox]
    [Checkbox]                                          PLK   [Textbox]   [Textbox]
    [Checkbox]                       Sub Level 2
    [Checkbox]                                          QWE   [Textbox]   [Textbox]
    [Checkbox]                                          PLL   [Textbox]   [Textbox]
    [Checkbox]   Top Level 2
    [Checkbox]                       Sub Level 1
    [Checkbox]                                          ZCV   [Textbox]   [Textbox]
    [Checkbox]                                          IKJ   [Textbox]   [Textbox]
    [Checkbox]                                          ESD   [Textbox]   [Textbox]
    [Checkbox]                       Sub Level 2
    [Checkbox]                                          ESM   [Textbox]   [Textbox]
    [Checkbox]                                          GHD   [Textbox]   [Textbox]
  2. Marin
    Marin avatar
    1057 posts

    Posted 29 Jul 2011 Link to this post

    Hello Chip,

     In order to put all the items in edit mode you can add their indexes to the EditIndexes collection of the RadTreeList and then rebind the control:

    protected void Page_Load(object sender, EventArgs e)
                foreach (var item in RadTreeList1.Items)

    Another option would be if you use only TemplateColumns that have textboxes in their ItemTemplates so that they look like they are in edit mode and will allow input when the TreeList is in display mode. More information on the different columns in RadTreeList can be found here.
    You can enable the recursive selection of the RadTreeList by setting the AllowRecursiveSelection property to true. More information on the specifics of this feature can be found here and a live demo is available here (you can enable the recursive selection from the configuration panel in the demo). Note that this feature requires an implicit postback to rebind the control so its better to use ajax or the pop up that holds the TreeList might automatically close when the page is reloaded.
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top