Custom filters and datagrid in devexpress? winforms

2 Answers 188 Views
GridView
Alexis
Top achievements
Rank 1
Iron
Iron
Alexis asked on 27 Nov 2023, 05:43 PM

any chance to create a data grid and customs filters like that in devexpress? im moving out from a php app to a c# one, standalone as per client requirement

image

2 Answers, 1 is accepted

Sort by
1
Dinko | Tech Support Engineer
Telerik team
answered on 28 Nov 2023, 12:25 PM

Hello Alexis,

Thank you for your interest in our Telerik UI RadGridView component for WinForms.

I am not quite familiar with the custom filtering behavior of the other vendor. In general, our RadGridView control exposes different filter options. You can check the following articles which describe the built-in filtering mechanism of the control.

Another approach is to use different filtering controls which can be integrated with RadGridView.

If none of these is an option for you, may I ask you to elaborate more on your filter requirement so that I can think of a suitable solution?

I am looking forward to your reply.

Regards,
Dinko | Tech Support Engineer
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.

Alexis
Top achievements
Rank 1
Iron
Iron
commented on 28 Nov 2023, 12:44 PM

yea basically is to create custom filter instead of using columns of datagrid having like picture a text input for example to search by name, a date input to filter by date range an so on
Alexis
Top achievements
Rank 1
Iron
Iron
commented on 28 Nov 2023, 12:58 PM

im confused if i use filterview control, i dont need to create a custom sql query with a where clause for each view? Example text input, date range, salary etc? Or telerik does that automatically? Thats my concern as right now im using a webapp with react and i needed to create a big sql query with where clause for each of my text input date range salary etc
1
Dinko | Tech Support Engineer
Telerik team
answered on 29 Nov 2023, 10:45 AM

Hello Alexis,

The FilterView control will generate a set of appropriate editors considering the respective field's data type. The control will create FilterDescriptor and apply it to the RadGridView control (in this case) which will filter its DataSource property. You don't need to create a query for each filter setting applied. You can get all the data and leave the FilterView to filter the data on the client side. 

I need to point out that the filter applied in the RadGridView will be on the client side. It will not create additional queries which update the data from the data source. You can create a query that gets all the data and applies it to the RadGridView. However, if you will need to reflect any changes applied in the RadGridView to the Database, you will need to manually update the respected Database row. You can check the Updating the Database with ADO.Net help article which demonstrates a possible way to reflect the changes to the database. 

I hope that my reply is helpful. If you have any other questions, feel free to contact us again.

Regards,
Dinko | Tech Support Engineer
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.

Tags
GridView
Asked by
Alexis
Top achievements
Rank 1
Iron
Iron
Answers by
Dinko | Tech Support Engineer
Telerik team
Share this question
or