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

Is it possible to define filter descriptors in XAML?

3 Answers 86 Views
DataFilter
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 13 Feb 2012, 02:45 PM
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>

3 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Feb 2012, 08:08 AM
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 >>
0
Mattias
Top achievements
Rank 1
answered on 14 Feb 2012, 01:18 PM
Ok... :/

Any plans adding XAML support for this feature?
0
Dimitrina
Telerik team
answered on 14 Feb 2012, 01:34 PM
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 >>
Tags
DataFilter
Asked by
Mattias
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Mattias
Top achievements
Rank 1
Share this question
or