SuspendNotifications not working for me

2 posts, 0 answers
  1. Cory
    Cory avatar
    6 posts
    Member since:
    Jun 2015

    Posted 07 Dec 2015 Link to this post

    I'm trying to build out some functionality that will allow users to enter in multiple filters and then once they have entered in all of their  filters, they can click button and execute complete set of filters.

    I'm trying to do this by calling grid's FilterDescriptors.SuspendNotifications() (via a checkbox checked event) and SuspendNotifications on all of the individual columns ColumnFilterDescriptor.

    Once the user has entered in their filters, I want to allow them to uncheck the check box, which calls the gird's FilterDescriptors.ResumeNotifications() and ResumeNotifications on all of the individual columns ColumnFilterDescriptor.

     What I'm seeing in my sample project is that everything works as expected when the application starts up.  I enter in a few filters, I uncheck the suspend check box, and the data is fitlered, correctly.

    When I re-check the suspend check box, I can go and delete values and the UI updates (Not what I expected since all notifications were suspended).

     

    Any suggestions or ideas?  Am I missing something obvious?  In my attached screenshot, I expected 3 rows of data, not one since filtering was suspended.

     

    Thanks,

    Cyrus

  2. Petya
    Admin
    Petya avatar
    975 posts

    Posted 10 Dec 2015 Link to this post

    Hello Cyrus,

    The approach you're using to achieve this task wouldn't work due to a design limitation in the mentioned methods and classes. Nevertheless, this seems like a scenario that might be feasible with other approaches and I'll consult with my colleagues on how you can go about it. I'll make sure to write back in this thread as soon as I have more information.

    Regards,
    Petya
    Telerik
    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
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top