Question

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

Was it helpful?

Solution

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

OTHER TIPS

As of this writing PanelBar does support hierarchical data model:

Please review the following link:

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top