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

public interface IFilteringControl does not fire Filtering event

1 Answer 50 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Calabonga
Top achievements
Rank 2
Calabonga asked on 23 Aug 2010, 06:51 AM
Hi, again!
Briefly: Silverlight, RIA, MVVM, RadGridView, Filtering (Custom control imlements IFilteringControl).
Trouble: I'm create a custom FilterControl (implement public interface IFilteringControl). This control work fine, but it work only with items on the grid page and it does not fire Filtering event on the RadGridView. I'm using this event to update a DomainDataSource control FilterDescriptions...

Please help me to make DomainDataSource upadate your filter collections!!!

1 Answer, 1 is accepted

Sort by
0
Rossen Hristov
Telerik team
answered on 23 Aug 2010, 07:54 AM
Hello Calabonga,

The event is not fired because there is no one to fire it. An interface cannot fire an event.

Since the control is totally yours, only you know when filtering occurs. Since you know when filtering occurs you do not need an event at all. Events are used when we, the control authors want to inform you, the control user, that something is going on. But since the filtering control is developed by you, it is you that know what goes on when. So, you can go and update the DomainDataSource in any way you like when filtering occurs in your control. You do not need an event at all.

But, if you still want to rely on RadGridView's built-in events, you can always call  the two public methods of the grid:

OnFiltering
OnFiltered

These are the two methods that our built-in FilteringControl calls when needed.

Sincerely yours,
Ross
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
GridView
Asked by
Calabonga
Top achievements
Rank 2
Answers by
Rossen Hristov
Telerik team
Share this question
or