How to read TreeList controls content at server side?

2 posts, 0 answers
  1. Johny
    Johny avatar
    9 posts
    Member since:
    Jul 2010

    Posted 15 May 2014 Link to this post

    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?
  2. Eyup
    Admin
    Eyup avatar
    3012 posts

    Posted 20 May 2014 Link to this post

    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.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top