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

How to read TreeList controls content at server side?

1 Answer 40 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Johny
Top achievements
Rank 1
Johny asked on 15 May 2014, 03:07 PM
Hi,
I have treelist with several templated controls. How am I supposed to read values out of these controls if they are colapsed?

Your own support says that the collapsed items are not available until expanded  (http://www.telerik.com/forums/get-all-items-in-radtreelist-include-collapse-items). Nice. Am I supposed to tell my users to expand the whole tree before saving?

1 Answer, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 20 May 2014, 10:07 AM
Hello Johny,

Yes, you are correct. You can access only the visible and rendered items since the collapsed records are not loaded at the current time. It seems that you are trying to submit some values to the server which were entered from the users before the item was collapsed. In that case, you can try to implement some custom logic to gather and preserve the changes on javascript collections and pass them to the server when necessary. A similar approach for RadGrid selected items you can find in this sample:
http://www.telerik.com/support/code-library/get-selected-items-through-all-pages

You can also check the recently introduced Batch editing functionality provided by RadGrid:
http://demos.telerik.com/aspnet-ajax/grid/examples/data-editing/batch-editing/defaultcs.aspx

Hope this helps.

Regards,
Eyup
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeList
Asked by
Johny
Top achievements
Rank 1
Answers by
Eyup
Telerik team
Share this question
or