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

Custom Filter over All Columns

5 Answers 143 Views
GridView
This is a migrated thread and some comments may be shown as answers.
ITA
Top achievements
Rank 1
ITA asked on 11 May 2015, 07:03 AM

Hi,

 

using GridViewControl with about 7 Columns. I like to add a custom filter over all columns by using a Textbox above the GridView.
How can i do this, is there an exmaple somewhere?

 

Thanks a lot

best regards

Rene

5 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 11 May 2015, 10:05 AM
Hi Rene,

You can check the Search As You Type WPF Demo as a reference on how to filter from a TextBox outside RadGridView. 

Regards,
Dimitrina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
ITA
Top achievements
Rank 1
answered on 11 May 2015, 12:24 PM

Hi Dimitrina,

 

i'm sorry but i can't start the exe behind your Link, which demo is this?

 

Thanks

best regards

Rene

0
Dimitrina
Telerik team
answered on 11 May 2015, 12:31 PM
Hello Rene,

You can find the online demoYou can also check our online documentation where the filtering is explained in details.

Regards,
Dimitrina
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
ITA
Top achievements
Rank 1
answered on 11 May 2015, 12:50 PM

Hi Dimitrina,

sorry works fine. But one Problem. I have a "telerik:GridViewImageColumn" in man GridView and i get an error in
"CustomFilterDescription" Klass.

public CustomFilterDescriptor(IEnumerable<Telerik.Windows.Controls.GridViewColumn> columns)
 {
           this.compositeFilterDesriptor = new CompositeFilterDescriptor();
           this.compositeFilterDesriptor.LogicalOperator = FilterCompositionLogicalOperator.Or;
 
           // ERROR !!!!!!!
           foreach (GridViewDataColumn column in columns)
           {
               this.compositeFilterDesriptor.FilterDescriptors.Add(this.CreateFilterForColumn(column));
           }
   }

 

Thanks

Regards

Rene

0
ITA
Top achievements
Rank 1
answered on 11 May 2015, 01:29 PM

Hi,

one more Problem. If i change the ItemsSoruce the Filter will not work any more, i have to start
the application new.

Hwo do i add the Filter by code?

 

Thanks

regards

Rene

Tags
GridView
Asked by
ITA
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
ITA
Top achievements
Rank 1
Share this question
or