get processed data after applying filter on autoProcessData

1 Answer 7 Views
Filter  Grid
irfan
Top achievements
Rank 1
irfan asked on 12 May 2025, 09:57 AM
I'm using autoProcessData=true in Grid, and I want to access the processed data after filters are applied. For example, if I start with 50 items and a filter reduces it to 10, how can I access those 10 filtered items? Is there a callback or method to get the processed data after filtering?
      <Grid
        data={addressList}
        dataItemKey={DATA_ITEM_KEY}
        className="k-grid-no-scrollbar border-none bg-transparent"
        autoProcessData={true}
        defaultSkip={0}
        defaultTake={10}
        pageable={{
          buttonCount: DEFAULT_TABLE_BUTTON_COUNT,
          pageSizes: DEFAULT_TABLE_PAGE_SIZES,
        }}
        sortable={{
          allowUnsort: true,
          mode: 'multiple',
        }}

      >

1 Answer, 1 is accepted

Sort by
0
Filip
Telerik team
answered on 13 May 2025, 01:20 PM

Hello, Irfan

To access the processed data after filters are applied when using autoProcessData=true, you can utilize the onDataStateChange event. This event is triggered each time the data state changes due to filtering, sorting, or paging operations. You can use this event to capture and process the filtered data. I have prepared an example which showcases this approach here:

I have console.logged the filtered data. Please review the approach outlined above and let me know in case this is still not exactly what you are looking for and I will gladly assist further.

Regards,
Filip
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
Filter  Grid
Asked by
irfan
Top achievements
Rank 1
Answers by
Filip
Telerik team
Share this question
or