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

Filter DataGrid programmatically c#

2 Answers 179 Views
DataGrid
This is a migrated thread and some comments may be shown as answers.
Itai
Top achievements
Rank 1
Itai asked on 29 Dec 2019, 02:27 PM

Hello,

I have a DataGrid with items and I want to add a popup with few entry that I use their values to filter the DataGrid.

I didn't understand how to do it or if it even possible.

 

Thanks :)

2 Answers, 1 is accepted

Sort by
0
Accepted
Didi
Telerik team
answered on 30 Dec 2019, 11:20 AM

Hi,

RadDataGrid supports both programmatic filtering and such applied through the UI - Filtering UI.

A sample example with programmatic filtering can be found in our SDK BrowserApp/Examples/DataGrid/Filtering/ProgrammaticFilteringExample. The sample demo shows how to apply filter to data grid column and filter this column through a value enter in the Entry control.

For the scenario you want to achieve I suggest you use the Filtering UI feature. The filtering component(Filtering UI) appears when clicking the options icon on each column's header and it allows the user to easily filter data by column values. Also it contains an entry which allows you to enter the filter criteria. 

If the Filtering UI does not fit your requirements, you can create a custom filtering UI - how to do this refer to the following article from our documentation: How to Customize the Filtering UI. A sample demo can be found in ourSDK browser app.

I hope the provided information was helpful.

Regards,
Didi
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Itai
Top achievements
Rank 1
answered on 31 Dec 2019, 05:29 AM
Exactly what I wanted thanks.
Tags
DataGrid
Asked by
Itai
Top achievements
Rank 1
Answers by
Didi
Telerik team
Itai
Top achievements
Rank 1
Share this question
or