is it possible to override filter function

0 Answers 48 Views
TreeList
Aleksandr
Top achievements
Rank 1
Bronze
Bronze
Veteran
Aleksandr asked on 10 Jun 2024, 05:48 PM
to override apply filter function?
Nikolay
Telerik team
commented on 13 Jun 2024, 01:30 PM

Hi Aleksandr,

Overriding the built-in filtering of the TreeList will require overriding the internal methods. What is the scenario you are facing? Having more information will help me better understand the case and allow me to advice further.

Regards,

Nikolay

Aleksandr
Top achievements
Rank 1
Bronze
Bronze
Veteran
commented on 13 Jun 2024, 01:54 PM

i need to have filter the tree for the field eq "X" or field is empty, now if I create such filter descriptors, it works wrong, having a tree I would like to filter out any children if parent eq EX and despite having empty items down, seems to make it, I need to create my custom filter logic, that is why I asked about ability to override existing dataset filter method
Nikolay
Telerik team
commented on 18 Jun 2024, 10:44 AM

Hi Aleksandr,

If you are using local data you can use a function to customize the filter logic:

https://docs.telerik.com/kendo-ui/api/javascript/data/datasource/configuration/filter#filteroperator

You can also check the following forum thread discussing the same scenario: https://www.telerik.com/forums/how-to-define-a-custom-filter-operator#2623546

Regards,

Nikolay

 

Aleksandr
Top achievements
Rank 1
Bronze
Bronze
Veteran
commented on 18 Jun 2024, 02:00 PM

Nikolay,

 

thx a lot, seems it can help

 

Thx Alex

Samuel
Top achievements
Rank 1
commented on 27 Jul 2024, 09:00 AM

Hello,

Thanks for your reply. Your reply also help me because i am also want to know about this. Once again thanks.

Lowes Life

Best regards,
samuel898

Nikolay
Telerik team
commented on 31 Jul 2024, 12:23 PM

Hi Samuel, 

I am happy to hear my suggestion is helping you move forward with the project. This is exactly what forum threads are designed for.

Feel free to ask the community if you have a question or inquiry.

Regards,

Nikolay

No answers yet. Maybe you can help?

Tags
TreeList
Asked by
Aleksandr
Top achievements
Rank 1
Bronze
Bronze
Veteran
Share this question
or