Completed
Last Updated: 17 Jan 2022 12:58 by ADMIN
Release 2022.R1
Lukas Körfer
Created on: 10 Dec 2021 11:37
Category: TreeList
Type: Bug Report
1
TreeList toolbar search does not apply filter to referenced data source

In ASP.NET Core, when using a TreeList with a data source that gets referenced by its id (instead of defining the data source directly on the TreeList), the built-in search functionality of the toolbar does not apply the filter to the data source. On each change of the search text the data source will send a new request, but the filter parameter is always null. When using the same approach for the Grid widget, the filter gets applied as planned. The attached project shows the behavior for both the TreeList and the Grid in detail.

Is this a bug? Is there another workaround than applying the data source directly to the TreeList (e.g. using JavaScript)?

Attached Files:
2 comments
ADMIN
Aleksandar
Posted on: 17 Dec 2021 09:25

Hi Lucas,

Thank you for reaching out, Upon investigating the report I can confirm the reported is a bug on our end. Currently, when defining a separate TreeListDataSource instance the type of the DataSource is not set, resulting in the filter configuration not being submitted in the expected format to the remote endpoint. 

I have therefore logged an item on the issue on your behalf - you can review it here:

https://github.com/telerik/kendo-ui-core/issues/6664

A possible workaround that I can suggest is defining the external DataSource using Kendo UI for jQuery, as suggested in the item linked above. I am also attaching an updated example demonstrating a complete implementation for the shared example.

Finally, I have updated your Telerik points for helping us identify this issue.

Regards,
Aleksandar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Attached Files:
Lukas Körfer
Posted on: 10 Dec 2021 13:24
I accidentally set the category of this bug to 'TreeView' instead of 'TreeList', but it seems like I cannot fixed it now.