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

Reset the list of items to the start

1 Answer 72 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.
paul
Top achievements
Rank 1
paul asked on 06 Jan 2012, 07:13 PM
Hi

I have a horizontal looping list which scrolls allowing the user to select an item.  This looping list is hidden when not required.

Now the problem is that if I reload the datasource of this looping list and then unhide it, the list is still showing in the position it was last used and when the user taps an item on the list it crashes with an internal error (not one I can trap).  

If you can tell me how to programatically reset the looping list so that it displays the first item it will resolve the issue.  I have tried setting selected index to 0 but this does not display the first item.

Any help most appreciated.

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 11 Jan 2012, 04:43 PM
Hi Paul,

Thank you for your question.

RadLoopingList resets its panel when its DataSource is changed, so you can set it to a new LoopingListDataSource and then turn it back to your collection. In addition, if you want to remove the current selection you can set the SelectedIndex property to -1.

I hope this information helps. If it does not solve your issue, I would kindly like to ask you to prepare a sample project reproducing the undesired behavior, so I could examine it and assist you further.
Please note that you will have to open a new support ticket in order to attach a project.

All the best,
Todor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
LoopingList
Asked by
paul
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or