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

Filter not working when custom data is passed for column

1 Answer 85 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Arun
Top achievements
Rank 1
Arun asked on 21 May 2020, 10:08 PM

     Hi, I have a grid with a custom column. The data for the column is an array of object and I render them as a button which enables me to click and naviagate based on the value I clicked. However, filter doesnt seem to work here. Please advice.

 

https://stackblitz.com/edit/react-pbcysg?file=SampleGrid.jsx

 

Line 813 is the place where the function to render a button is being called.

1 Answer, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 25 May 2020, 02:51 PM

Hello, Arun,

The by default the Grid only fires events with the filter value, the actual filtering is done outside of the Grid using the application business logic. If there are objects or an array of objects then this has to be taken into account when filtering. From what I was able to see the Grid return this filter:

{field: "state", operator: "startswith", value: "a"}

 

As the provided example has over 1000 lines of code, is it possible to guide us where the filtering logic is happening, as this will help us inspect it and try to assist in enabling the filter?

Regards,
Stefan
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Arun
Top achievements
Rank 1
Answers by
Stefan
Telerik team
Share this question
or