Refresh ListView Interface Programmatically?

3 posts, 0 answers
  1. Greg
    Greg avatar
    4 posts
    Member since:
    Feb 2017

    Posted 16 May 2017 Link to this post

    I see that after reordering cells in RadListView, the data is reordered automatically.  That's pretty nice.  I'm looking for a way to go the other direction.  If I reorder the data programmatically, I'd like the interface to refresh so it reflects the order of the data.  Is this possible with RadListView?

  2. Greg
    Greg avatar
    4 posts
    Member since:
    Feb 2017

    Posted 16 May 2017 in reply to Greg Link to this post

    OK, I figured out I can update the sort descriptor of the list view to make the interface update.  It works fine on iOS.


    On Android, I'm having a separate problem.  I can click and drag a row but the SelectionChanged event appears to not get invoked.

    I have this in my MainActivity.cs as specified on the Getting Started page:

    [assembly: ExportRenderer (typeof (Telerik.XamarinForms.DataControls.RadListView), typeof (Telerik.XamarinForms.DataControlsRenderer.Android.ListViewRenderer))]

    Am I missing something?

  3. Nikolay
    Nikolay avatar
    397 posts

    Posted 19 May 2017 Link to this post

    Hello Greg,

    Could you, please, refer to the answer we have provided in this forum post, which describes how to achieve this by subscribing to CollectionChanged. Does this provide the required behavior? 

    Telerik by Progress
    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