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

Load Treelist on Client Side

1 Answer 25 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Zoe
Top achievements
Rank 1
Zoe asked on 27 Aug 2013, 02:54 PM
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.

1 Answer, 1 is accepted

Sort by
0
Antonio Stoilkov
Telerik team
answered on 30 Aug 2013, 08:02 AM
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.

Regards,
Antonio Stoilkov
Telerik
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.
Tags
TreeList
Asked by
Zoe
Top achievements
Rank 1
Answers by
Antonio Stoilkov
Telerik team
Share this question
or