DataGrid Filtering?

1 Answer 57 Views
GridView
Bradley
Top achievements
Rank 2
Iron
Iron
Iron
Bradley asked on 20 Aug 2024, 07:30 AM

I'm evaluating Telerik's UI for WPF and simply don't have the knowledge nor the time to learn the GridView thoroughly.  I have to make a decision between Telerik and a competitor very soon.

The question is about filtering.  I like the filtering in the Telerik grid, with the funnel icon.  However, my client is familiar with a different experience, and prefers it.  Specifically, the client would like a line between the column headers and the data (basically a textbox in each column) where the user could simply type and the grid would automatically filter using a "contains" (simple concept, but not so easy for me to describe).  Is that something that could be done with Telerik's grid?  Can it be done with configuration, or would it require custom coding?  Ideally I'd love to see an example (GitHub)?

Thanks in advance.

1 Answer, 1 is accepted

Sort by
1
Accepted
Martin Ivanov
Telerik team
answered on 20 Aug 2024, 01:28 PM

Hello Bradley,

This sounds like the "FilterRow" FilteringMode setting of RadGridView. 

<telerik:RadGridView FilteringMode="FilterRow" /> 

You can find runnable code examples showing how to setup RadGridView in the following GitHub repository. Also, you can check the help documentation.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Bradley
Top achievements
Rank 2
Iron
Iron
Iron
commented on 20 Aug 2024, 08:05 PM

Yes, the "FilteringMode" looks very close. However, in our case we'd like to have two things different: 1) automatically (preferably configuration, but code if necessary) set the filter type to "Contains", and 2) have the textbox work like the "Search as you type" example.  Are those doable?
Bradley
Top achievements
Rank 2
Iron
Iron
Iron
commented on 20 Aug 2024, 11:06 PM

Never mind - I found the sample named "FilterAsYouTypeWithFilterRow_WPF", and I think it does exactly what I'm looking for.

Thanks a lot for your help!

Tags
GridView
Asked by
Bradley
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or