RadDataPager - update listbox/grid when source is updated

3 posts, 0 answers
  1. Michael Eaton
    Michael Eaton avatar
    7 posts
    Member since:
    Jan 2006

    Posted 19 Oct 2011 Link to this post

    My question is identical to this one: http://www.telerik.com/community/forums/preview-thread/wpf/gridview/raddatapager-radgridview-refresh.aspx, but unfortunately, the original poster who claimed to have solved it didn't actually post what he did. :-\

    I have a RadDataPager bound to

    ObservableCollection<Foo> Bar
    .
    <telerik:RadDataPager x:Name="radDataPager" Source="{Binding Bar}"/>

    I have a listbox that has its ItemsSource set to:

    <ListBox ItemsSource="{Binding PagedSource, ElementName=radDataPager}"/>

    When the underlying collection 'Bar' changes, those changes aren't being reflected in the listbox and I'm not sure why.

    Any thoughts?

    thanks.

    mike
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 21 Oct 2011 Link to this post

    Hi,

     Can you verify if the observable collection is not recreated multiple times? This will break the collection changed listeners.  

    Best wishes,
    Vlad
    the Telerik team

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

  3. UI for WPF is Visual Studio 2017 Ready
  4. Michael Eaton
    Michael Eaton avatar
    7 posts
    Member since:
    Jan 2006

    Posted 24 Oct 2011 Link to this post

    That was it. :-) I was recreating the ObservableCollection as the items were being filtered.

    Paging seems to be working now with the exception that when I page up/down, it wants to automatically select the first item on each page. :-\ 
Back to Top