Filtering cleared when switching tabs

5 posts, 0 answers
  1. Pierre-Andre van Leeuwen
    Pierre-Andre van Leeuwen avatar
    12 posts
    Member since:
    Feb 2010

    Posted 21 Nov 2011 Link to this post

    Hi

    I have the same problem as this person: StackOverflow question. If you have a RadGridView inside a TabControl, the grid view will lose its filtering and sorting options when you switch to another tab and back.

    Details:
    • .NET 4.0
    • RadControls version:  2011.2.920.40
    • The grid views are bound to ObservableCollections or ICollectionViewSource. The filtering is only performed by clicking on the filter button on the column header. No filtering is performed in code.
    • Everything is implemented using the MVVM pattern.

    Regards
    Pierre-Andre


  2. Greg
    Greg avatar
    29 posts
    Member since:
    Oct 2007

    Posted 13 Jan 2012 Link to this post

    I have this problem as well. In addition Sort order is also lost when switching away from and back to a tab containing a GridView in WPF/MVVM.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 16 Jan 2012 Link to this post

    Hello,

     Do you get different behavior with standard WPF DataGrid?

    Greetings,
    Vlad
    the Telerik team

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

  5. Adam
    Adam avatar
    25 posts
    Member since:
    Mar 2012

    Posted 04 Nov 2014 Link to this post

    try using this
    Telerik.Windows.Data.QueryableCollectionView
    as your itemsource list.

    It should then retain your filters on tab-switch.
  6. Adam
    Adam avatar
    25 posts
    Member since:
    Mar 2012

    Posted 04 Nov 2014 in reply to Adam Link to this post

    scratch the above - I was being a numpty. sorry.
Back to Top
UI for WPF is Visual Studio 2017 Ready