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

Filter Descripter with Grdiview

2 Answers 34 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Ambuj
Top achievements
Rank 1
Ambuj asked on 24 Mar 2011, 04:49 PM
Can we specify multiple filter descriptor for muliple columns? I think one way is using composite filter descriptor and setting the logical or and and condition. 

Also Can we bind the value property of Filter Descriptor with a textbox or a property in view model. I am following up MVVM so dont want to use code behind events..

Thanks
Ambuj

2 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 24 Mar 2011, 04:59 PM
Hello,

 Today I've made something similar for Silverlight however the same approach can work in WPF as well. You can check this thread for more info. 

Best wishes,
Vlad
the Telerik team
0
Ambuj
Top achievements
Rank 1
answered on 25 Mar 2011, 12:25 PM
Hello Vlad,

Thanks for your very prompt response. 

I looked at the sample application. Your data object is in code behind file i.e MainPage.xaml.cs file but in my case my data is always in viewmodel so I cannot set the datacontext in code behind.

My XAML will only recongnise the Filter property if the datacontext is set in code behind. My viewmodel is actually supplying data to my page.

Please suggest. 

Thanks
Ambuj
Tags
GridView
Asked by
Ambuj
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Ambuj
Top achievements
Rank 1
Share this question
or