public interface IFilteringControl does not fire Filtering event

2 posts, 0 answers
  1. Calabonga
    Calabonga avatar
    29 posts
    Member since:
    Nov 2009

    Posted 23 Aug 2010 Link to this post

    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!!!
  2. Rossen Hristov
    Rossen Hristov avatar
    2478 posts

    Posted 23 Aug 2010 Link to this post

    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:


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

    Sincerely yours,
    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
  3. DevCraft banner
Back to Top