Dynamic LoopingListDataSource

3 posts, 1 answers
  1. Ryan
    Ryan avatar
    21 posts
    Member since:
    Apr 2013

    Posted 29 Aug 2014 Link to this post

    Hi,

    I recently used a RadLoopingList using a LoopingListDataSource, however I wanted to be able to dynamically add extra items to the source.

    Looking at the source a bit closer, it seems you have to pass the Count of items into the constructor, and there is no way to dynamically change the number of elements. The only option would be to create a new list and associate this with the source.

    Is there any way to do this?

    Ryan
  2. Answer
    Rosy Topchiyska
    Admin
    Rosy Topchiyska avatar
    550 posts

    Posted 03 Sep 2014 Link to this post

    Hi Ryan,

    Thank you for contacting us.

    Indeed the Count of the LoopingListDataSource items can not be updated and you will need to create a new source every time you wish to change the items count.

    Please, let us know if you have further questions.

    Regards,
    Rosy Topchiyska
    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. DevCraft banner
  4. Ryan
    Ryan avatar
    21 posts
    Member since:
    Apr 2013

    Posted 16 Oct 2014 in reply to Rosy Topchiyska Link to this post

    Thanks Rosy,

    I have moved along the path of recreating the source to solve my problem.

    Ryan
Back to Top