Is it possible to define filter descriptors in XAML?

4 posts, 0 answers
  1. Mattias
    Mattias avatar
    15 posts
    Member since:
    May 2011

    Posted 13 Feb 2012 Link to this post

    Hi,

    Is it possible to define a default filter in XAML in a databound RadDataFilter?

    Example:

    <telerik:RadDataFilter Name="radDataFilter"
                                   Source="{Binding Items}"
                                   Margin="1">
        <telerik:RadDataFilter.FilterDescriptors>
            <telerik:FilterDescriptor Member="StartDate" Operator="IsGreaterThanOrEqualTo" Value="2011-11-01">    </telerik:FilterDescriptor>
        </telerik:RadDataFilter.FilterDescriptors>
         
         
    </telerik:RadDataFilter>
  2. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Feb 2012 Link to this post

    Hi,

    Unfortunately not.  You could define a default filter for the RadDataFilter only in code behind.

    Regards,
    Didie
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft banner
  4. Mattias
    Mattias avatar
    15 posts
    Member since:
    May 2011

    Posted 14 Feb 2012 Link to this post

    Ok... :/

    Any plans adding XAML support for this feature?
  5. Dimitrina
    Admin
    Dimitrina avatar
    3769 posts

    Posted 14 Feb 2012 Link to this post

    Hello,

    Currently we do not have such plans. What you can do in order to bind FilterDescriptors in XAML is to use a Behaviour like shown in this online article.

    I hope that this would be a solution for you.

    All the best,
    Didie
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top