Load Treelist on Client Side

2 posts, 0 answers
  1. Zoe
    Zoe avatar
    1 posts
    Member since:
    Jun 2013

    Posted 27 Aug 2013 Link to this post

    Hi, I want a  treelist looks like below

    - node 1                   checkbox      text box
      - node 1.1              checkbox      text box
         - node 1.1.1        checkbox       text box
         - node 1.1.2        checkbox       text box
    - node 2                   checkbox      text box
      - node 2.1              checkbox      text box
         - node 2.1.1        checkbox       text box
         - node 2.1.2        checkbox       text box

    My treelist will load data for textbox, but I also want user to be able to input some data through text box. And on the page there is a save button. When user click on it, the content in text box will be saved. I want to load this treelist on client side so that each time I expand/ collapse, it won't postback and textbox value can be maintained there.  And When I save data, I will loop through treelist, all t records, no matter its parent node has been expanded or not will be saved.  Is it possible to do that?

     I am very new to .net and I  am looking for  the right way to achieve the tree like and also gridview like function. I am not sure which is the best control to use. I appreciate your advice. 

    Thank you so much.
  2. Antonio Stoilkov
    Antonio Stoilkov avatar
    530 posts

    Posted 30 Aug 2013 Link to this post

    Hi Zoe,

    Unfortunately, the RadTreeList control does not have a client expand\collapse mode. In order to achieve your scenario you will need a custom implementation in order to loop through all TextBox controls in the RadTreeList ItemCommand event, saving their values in a variable and then retrieving the data in the Page PreRender event.

    Antonio Stoilkov
    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 the blog feed now.
  3. DevCraft R3 2016 release webinar banner
Back to Top