Does Kendo UI PanelBar support HierarchicalDataSource?

1.7k views Asked by At

Does Kendo UI PanelBar support HierarchicalDataSource? I have code that works for Kendo TreeView but if instead of a TreeView I tell it to build a PanelBar, no control is constructed.

I am using 2012 Q3 -- Is this even supported or am I trying something that is not implemented?

 var ss = new kendo.data.HierarchicalDataSource({ data: panelBarSource });

 $('#panelBar').kendoPanelBar({
            dataSource: ss,
            dataValueField: "id",
            dataTextField: "name"
        });

panelBarSource resembles:

enter image description here

2

There are 2 answers

0
Bundyo On BEST ANSWER

Kendo UI PanelBar currently doesn't support hierarchical data source. Alternatively you can use a JSON object to initialize it. Check the docs for more information:
http://docs.kendoui.com/getting-started/web/panelbar/overview#initialize-a-panelbar-using-json-data-object

0
Robert Achmann On

As of this writing PanelBar does support hierarchical data model:

Please review the following link:

You'll find it about half way down...