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

Does PanelBar support HierarchicalDataSource

6 Answers 174 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Matt Dufrasne
Top achievements
Rank 1
Matt Dufrasne asked on 28 Nov 2012, 12:50 AM
I'm using a PanelBar in the exact same manner as TreeView but the expected control is not being built.
Is this supported or am I trying to do something that is not supported? I'm on 2012 Q3

More info on my issue here

6 Answers, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 28 Nov 2012, 08:53 AM
Hello Matt,

I already replied in StackOverflow, check my answer there.

Kind regards,
Kamen Bundev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Kake
Top achievements
Rank 1
answered on 18 Apr 2016, 12:13 PM
Any update regarding the HierarchicalDataSource support  in the PanelBar ? (using angular)
0
Veselin Tsvetanov
Telerik team
answered on 20 Apr 2016, 01:06 PM
Hello Kake,

Currently, the PanelBar widget supports JSON Data object (hierarchical) to be set as its dataSource. It still does not support kendo.data.HierarchicalDataSource. However, there is a related suggestion in our Feedback portal, that you could vote for and track its progress.

Regards,
Veselin Tsvetanov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kevin F
Top achievements
Rank 1
answered on 13 Dec 2017, 08:49 AM
Just checking to see if the PanelBar supports kendo.data.HierarchicalDataSource yet.
0
Kevin F
Top achievements
Rank 1
answered on 13 Dec 2017, 08:59 AM

Sorry I got click-happy.  Trying to use a PanelBar in MVVM.

Here's the datasource:

ExtrasDataSource: new kendo.data.HierarchicalDataSource({
        transport: {
            read: {
                url: dataUrl + "/GetAllListingExtrasForLocation",
                dataType: "json",
                contentType: "application/json",
                type: "POST"
            },
            parameterMap: function () {
                var sendData = {
                    location: listingModel.get("listingData.Agency"),
                    resourceClass: listingModel.ResourceClass(),
                    listingId: listingId
                };
                return kendo.stringify(sendData);
            }
        },
        schema: {
            data: "d",
            model: {
                children: "Items"
            }
        }
    })

 

And the HTML:

<script id="extraDetailTemplate2" type="text/x-kendo-template">
    <div>
        <span>#= TypeName #</span>
        <div data-role="listview" data-template="extraDetailTemplate" data-bind="source: Items"></div>
    </div>
</script>
<div
    data-role="panelbar"
    data-text-field="TypeName"
    data-template="extraDetailTemplate2"
    data-bind="source: ExtrasDataSource">
</div>

 The names come out fine for the panel items but all the children just say "undefined".

I've seen some other posts saying that you can't render a databound panelbar with a template, but they were old so I figured I'd check back on that as well.  The output doesn't appear to be using the template so I'm assuming that is still the case.

Thanks in advance!

Kevin

 

0
Veselin Tsvetanov
Telerik team
answered on 18 Dec 2017, 07:56 AM
Hello Kevin,

I am afraid, that neither the Templates nor the HierarchicalDataSource are supported by the PanelBar widget in MVVM scenario. Therefore, I would suggest you to share your thoughts in the following enhancement task and cast your vote for this feature request.

Regards,
Veselin Tsvetanov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
PanelBar
Asked by
Matt Dufrasne
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Kake
Top achievements
Rank 1
Veselin Tsvetanov
Telerik team
Kevin F
Top achievements
Rank 1
Share this question
or