Custom filter: how to notify a filter change?

10 posts, 0 answers
  1. Patrick
    Patrick avatar
    416 posts
    Member since:
    Aug 2012

    Posted 23 Jul 2013 Link to this post

    Hello,
    I have a custom filter that implements IFilterDescriptor and also IFilteringControl so the user can edit the filter. It works correctly for the first time I filter the data, but I don't know how to tell the GridView that the filter has changed and it must refilter the data.
    I've tried to notify that one of the filter properties has changed, but it doesn't work.
    The only solution I have found is to remove my filter from the column and add again my own filter. But this is a two-step process and the list is filtered twice. If I put this code between a pair of SuspendNotifications and ResumeNotifications, but the list is not updated. Even when calling Reset after the ResumeNotifications call.
    What should I do for the list to be filtered?
    Patrick
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 23 Jul 2013 Link to this post

    Hello Patrick,

    May I ask you to please share how exactly do you update the filter? 

    Regards,
    Didie
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. Patrick
    Patrick avatar
    416 posts
    Member since:
    Aug 2012

    Posted 23 Jul 2013 Link to this post

    Hello Didie,
    I change some of the properties of my IFilterControl and raise the NotifyPropertyChanged event.
    I don't know if I have something else to do.
    Patrick
  4. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 24 Jul 2013 Link to this post

    Hello,

    Can you please prepare a very simple dummy project showing all of this and I will debug it immediately to see what exactly is going on. This will be the fastest way to solve the problem -- I need something which I can run locally, debug and fix the code accordingly if possible.

    Thank you in advance. You can attach the project in a support ticket.

    Regards,
    Rossen Hristov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  5. Patrick
    Patrick avatar
    416 posts
    Member since:
    Aug 2012

    Posted 24 Jul 2013 Link to this post

    Rossen,
    can the project be in Oxygene?
    Because I'm not very good to write C# code and even worse for VisualBasic code.
    Patrick
  6. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 24 Jul 2013 Link to this post

    Hello,

    I am afraid that I only know C#.

    Anyway, I will try to debug the Oxygene code -- it can't be that different from the stock C#. And I will learn something new in the process.

    Regards,
    Rossen Hristov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  7. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 24 Jul 2013 Link to this post

    Hi,

    Is this the version I need to download, so I can debug it in Visual Studio?

    http://www.remobjects.com/download.aspx?publicdownloadurl=http://trials.remobjects.com/TRIAL/Oxygene/RemObjects%20Oxygene%20-%206.0.49.1301.exe

    ?

    Regards,
    Rossen Hristov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  8. Patrick
    Patrick avatar
    416 posts
    Member since:
    Aug 2012

    Posted 24 Jul 2013 Link to this post

    Hello Rossen,
    I'm preparing a test version with this version of the compiler, so that you can test it.
    Patrick
  9. Patrick
    Patrick avatar
    416 posts
    Member since:
    Aug 2012

    Posted 24 Jul 2013 Link to this post

    Hello Rossem
    I've created a aupport ticket for this question. Ticket number is 719302.
    Patrick
  10. Rossen Hristov
    Admin
    Rossen Hristov avatar
    2478 posts

    Posted 25 Jul 2013 Link to this post

    Hello,

    I've replied to the support ticket.

    Regards,
    Rossen Hristov
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for SILVERLIGHT.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top