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

Radloopinglist data update

1 Answer 38 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.
AS
Top achievements
Rank 1
AS asked on 10 Jun 2015, 04:56 PM

Hi

I am trying to "reload" a RadLoopingList control when the data source changes.

Overall scenario ... there are two (or more) RadLoopingList controls, ll1, and ll2. When the selectedindex of ll1 changes, ll2 gets a new datasource and a random new selectedindex based on the new datasource.

I have tried two things ...

Approach 1 ... Standard INotifyPropertyChanged
When the selectedindex of ll1 changes, I update the datasource
The binding in ll2 ensures that I now can see the new data

Approach 2 ... I know this is simplistic, but I tied it anyway ...
When the selectedindex of ll1 changes, I set ll2.ItemsSource = newlist

Both kind of work ... but I will try to use Approach 1 if possible. 

Here is my issue ... Using Aproach 1 ...

  • After selectedindex of ll1 changes, I update the datasource for ll2 which then correctly shows me the new data
  • While still in the ll1_SelectedIndexChanged, I cannot set the selectedindex of ll2, and have it highlighted. So, if I set ll2.SelectedIndex = 0, it does get set, but the visual cue, the highlighting, does not set to the item in the middle.

What is the process for setting the selectedindex and corresponding UI update after the datasource has changed for RadLoopingList ?

Thanks.

 

1 Answer, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 15 Jun 2015, 04:08 PM
Hi Sudhir,

Thank you for contacting us.

This issue is related to a problem previously discussed in this thread. The only workaround that I can suggest right now is to create a new looping list each time you need to update the source of the second list. I have attached a sample.

I hope this helps.

Regards,
Rosy Topchiyska
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
LoopingList
Asked by
AS
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Share this question
or