GridColumnMenuCheckboxFilter, how to show different label for checkbox

1 Answer 89 Views
Checkbox Filter  General Discussions Grid Wrappers for React
Rachana
Top achievements
Rank 1
Rachana asked on 10 Oct 2023, 09:32 AM

I have a price column, in Grid am using format="{0:c}" for displaying currency format. I need same format to be displayed for that particular column's GridColumnMenuCheckboxFilter also. If i update the data object, filter is not working as numeric. Need an urgent fix for this issue ?

Am using below code for wrapper: 

 <GridColumnMenuWrapper
          {...props.columnMenuWrapperProps}
          data={alldata}
          expanded={true}
          searchBox={() => null}
        ></GridColumnMenuWrapper>

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 10 Oct 2023, 06:00 PM

Hello Rachana,

The GridColumnMenuCheckboxFilter will work with the underlying dataItem values and not with the applied format for the column cells. However, you can modify the data passed to the GridColumnMenuCheckboxFilter, its "filter" property to modify the filter expression and also handle the onFilterChange to also modify the filter values.

Following is an example demonstrating such implementation for the UnitPrice column:

Hope this helps.

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Checkbox Filter  General Discussions Grid Wrappers for React
Asked by
Rachana
Top achievements
Rank 1
Answers by
Konstantin Dikov
Telerik team
Share this question
or