MyFilterDescriptorBindingBehavior

7 posts, 0 answers
  1. Joel Palmer
    Joel Palmer avatar
    164 posts
    Member since:
    May 2009

    Posted 12 Jan Link to this post

    Your Q1 2016 example references the "MyFilterDescriptorBindingBehavior" in the "Example.xaml" file of the "DataFilter.Default Filter Editors" example.  However, that is nowhere to be found.

    I need to add a FilterDescriptor using code that is displayed in the control for the user to interact with.  This seems like the example that would cover the scenario but the documentation is incomplete.  Can you help me with this?

     Joel

  2. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    281 posts

    Posted 15 Jan Link to this post

    Hello Joel,

    Thank you for reporting this issue. I have checked the situation and indeed we have missed adding the implementation of this specific class. You can find it in the code for the  "Data Filter Custom Editors" demo. We will update the demo in the near future so that it has all the information needed. Please, check if this implementation suits your project needs and update me if you need any assistance. 

    Of course, if you have any further questions or concerns, do not hesitate to contact us as well.

    Regards,
    Stefan Nenchev
    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
  4. Joel Palmer
    Joel Palmer avatar
    164 posts
    Member since:
    May 2009

    Posted 21 Jan in reply to Stefan Nenchev Link to this post

    I get an Object reference error when attempting to get this working with that Behavior.  Can you compile a simple project for me?  I'd appreciate it,

     Joel

  5. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    281 posts

    Posted 26 Jan Link to this post

    Hi Joel,

    I have created a sample project based on the Default Filter Editors demo and have attached it to my reply. Please update me if it is running as expected.

    Regards,
    Stefan Nenchev
    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
  6. Joel Palmer
    Joel Palmer avatar
    164 posts
    Member since:
    May 2009

    Posted 26 Jan in reply to Stefan Nenchev Link to this post

    Awesome.  Thanks for your help. 

    So, my original objective is to be able to add FilterDescriptors during run time.  Problem is, this is a "StaticResource".  Is there a way to do this with a binding to a "DynamicResource" or better yet, as part of a property with an "IObservableCollection" approach.
  7. Stefan Nenchev
    Admin
    Stefan Nenchev avatar
    281 posts

    Posted 29 Jan Link to this post

    Hi Joel,

    You can add different FIlterDescriptors to the StaticResource during run-time by utilizing the Commands mechanism in order to not break the MVVM approach. I have updated the project I have previously provided you with so that you can add a certain FilterDescriptor during run-time and it is working as expected. Can you please review it and update me if it would suit your needs?

    If you insist on using a dynamic resource, you can achieve the effect by inheriting the DataFilter control and registering an additional DependencyProperty.

    Regards,
    Stefan Nenchev
    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
  8. Joel Palmer
    Joel Palmer avatar
    164 posts
    Member since:
    May 2009

    Posted 29 Jan in reply to Stefan Nenchev Link to this post

    Thank you very much for your attention to this.  This had me stumped. 

     I'll give it a try,

    Joel

Back to Top
UI for WPF is Visual Studio 2017 Ready