Filter not working when custom data is passed for column

2 posts, 0 answers
  1. Arun
    Arun avatar
    36 posts
    Member since:
    Feb 2019

    Posted 21 May 2020 Link to this post

         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.

  2. Stefan
    Admin
    Stefan avatar
    3039 posts

    Posted 25 May 2020 Link to this post

    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.
Back to Top