This is a migrated thread and some comments may be shown as answers.

SuspendNotifications not working for me

1 Answer 152 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Cory
Top achievements
Rank 1
Cory asked on 07 Dec 2015, 10:42 PM

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

1 Answer, 1 is accepted

Sort by
0
Petya
Telerik team
answered on 10 Dec 2015, 07:03 PM
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
Tags
GridView
Asked by
Cory
Top achievements
Rank 1
Answers by
Petya
Telerik team
Share this question
or