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

Dynamic LoopingListDataSource

2 Answers 74 Views
LoopingList
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Ryan
Top achievements
Rank 1
Ryan asked on 30 Aug 2014, 12:50 AM
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 Answers, 1 is accepted

Sort by
0
Accepted
Rosy Topchiyska
Telerik team
answered on 03 Sep 2014, 08:46 AM
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.

 
0
Ryan
Top achievements
Rank 1
answered on 16 Oct 2014, 07:19 PM
Thanks Rosy,

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

Ryan
Tags
LoopingList
Asked by
Ryan
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Ryan
Top achievements
Rank 1
Share this question
or