This is a migrated thread and some comments may be shown as answers.

Kendo UI TreeView SetDataSource cause a stack overflow error

1 Answer 168 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Tina
Top achievements
Rank 1
Tina asked on 30 Oct 2014, 06:18 AM
Hi,

I am using Kendo Tree View.
I construct a HierarchicalDataSource, but I get a 'stack overflow' error when I try to call SetDataSource to bind the data.
I get this error in IE 8.0.7601.17514CO 64bit, and no error in chrome.

here is my code:

public class TDNode
    {
        public string id { get; set; }
        public string text { get; set; }
        public string ctrlTypeCssClass { get; set; }
        public bool expanded { get; set; }
        public bool hasChildren { get; set; }
        public string parentid { get; set; }
        public List<TDNode> items = new List<TDNode>();
    }

 success: function (data) {
                var newDataSource = null;
                newDataSource = new kendo.data.HierarchicalDataSource({
                    data: data
                });

                $("#tvtemplate").data("kendoTreeView").setDataSource(newDataSource);
            }

Thanks.


1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 31 Oct 2014, 03:02 PM
Hello Tina,

I'm afraid that the posted code is insufficient in order to reproduce the issue. Can you please provide a sample that shows the problem, either as a client-side Dojo sample or a stand-alone project?

Regards,
Alex Gyoshev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TreeView
Asked by
Tina
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Share this question
or