Allways new FilterCellTemplateContext instance

1 Answer 120 Views
Filter Grid
Vadzim
Top achievements
Rank 1
Vadzim asked on 31 Aug 2022, 04:36 PM

I have created custom row filtering.

TelerikDateRangePicker is used inside FilterCellTemplate.

Based on the examples from the article -> https://demos.telerik.com/blazor-ui/grid/custom-filter-row <- select start, end dates and clear button handlers was implemented.

But I found that for each handler (select start or end date) new instance of FilterCellTemplateContext has been used.

And when I try to get selected values in OnRead method from GridReadEventArgs -> Request.Filters, filters do not contain selected date range.

Could someone please explain why there are a lot of instances of FilterCellTemplateContext (more that one on each method call)?

How can I get selected date range values in OnRead methods from GridReadEventArgs?

 

Thanks!

1 Answer, 1 is accepted

Sort by
0
Svetoslav Dimitrov
Telerik team
answered on 05 Sep 2022, 12:20 PM

Hello Vadzim,

I have prepared a short sample code snippet where I investigated the issue you have reported to us. See it from this REPL link. When I filtered the "Salary" column the OnRead event gets the filter descriptors as expected. Can you modify the snippet so that the issue is reproducible so that we can further investigate? 

Regards,
Svetoslav Dimitrov
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
Vadzim
Top achievements
Rank 1
Answers by
Svetoslav Dimitrov
Telerik team
Share this question
or