Radloopinglist data update

Thread is closed for posting
2 posts, 0 answers
  1. AS
    AS avatar
    14 posts
    Member since:
    Jan 2015

    Posted 10 Jun 2015 Link to this post


    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 ?



  2. Rosy Topchiyska
    Rosy Topchiyska avatar
    586 posts

    Posted 15 Jun 2015 Link to this post

    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.

    Rosy Topchiyska
    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
Back to Top