Last Updated: 09 Mar 2023 18:59 by ADMIN
Created on: 03 Mar 2023 05:44
Category: UI for ASP.NET MVC
Type: Feature Request
DataSource HasChildren Handler

Good Day,

We would like to submit a feature request to add a handler method for the `HasChildren` property of a HierarchicalDatasource for the MVC Wrappers. It currently only supports a string field name even though the Javascript api can handle a function. We are currently working around this by using the wrapper to define our widget, and then in a kendo.syncready we are creating a datasource and then using setOptions of the widget to achieve the same effect, which should be in the wrapper already.

Example code snippet:

        kendo.syncReady(function() {
            let panelBar = jQuery("#@panelBarId").getKendoPanelBar();
            if (!panelBar) {
            var ds = new kendo.data.HierarchicalDataSource({
                transport: {
                    read: {
                        url: '@Url.Action("LoadPanelBarResults", "Home")',
                        data: function (){
                            return resultsPanelbarData('@Html.Raw(searchTagString)', '@Html.Raw(parentTagString)');    
                schema: {
                    model: {
                        id: 'IdString',
                        hasChildren: hasChildrenFunction
            panelBar.setOptions({dataSource: ds});

We hope this request is clear, let us know if there are any questions of the use of this scenario.

Thankyou for your time,


1 comment
Ivan Danchev
Posted on: 09 Mar 2023 18:59

Hello Nathan,

Thank you for submitting this feature request. I've added a vote on your behalf.

Ivan Danchev
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/.