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.