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

Using "template" in databound panelbar

5 Answers 245 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Kake
Top achievements
Rank 1
Kake asked on 19 Apr 2016, 01:10 PM

Hi

Is it possible to use templates in a databound panelbar?

Pseudo:

<ul kendo-panel-bar k-data-source="files.panelData.data()" k-rebind="files.panelData.data()">
    <span k-template>
        <i class="fa fa-folder-open" ng-hide="{{!dataItem.expanded}}"></i>
        <i class="fa fa-folder" ng-hide="{{dataItem.expanded}}"></i>
        {{dataItem.text}} <span ng-show="dataItem.count!= 0">({{dataItem.count}})</span>
    </span>
</ul>

(gives --> k-template without a matching parent widget found. It can be one of the following: ?^^kendoTreeMap, ?^^kendoMobileListView, ?^^kendoMobileScrollView, ?^^kendoListView, ?^^kendoTreeView )

 

 

 

 

5 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 21 Apr 2016, 09:17 AM
Hello,

I am afraid that this functionality is currently not supported and the PanelBar widget cannot use templates for rendering when in dataBound mode. 

All the configuration options are listed here:

http://docs.telerik.com/kendo-ui/api/javascript/ui/panelbar

Regards,
Kiril Nikolov
Telerik
 
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 25 Apr 2016, 12:18 PM
Tnx for the reply.
Trying to find a workaround that will work in my case... 
Each of the panelbar items consist of a name and a count. (Could probably do some string parsing magic and update the count, but not an ideal solution)

Is there some other way to solve this? Have a function as the text property etc...(I have a property on the databound json containing the count property.)
0
Accepted
Kiril Nikolov
Telerik team
answered on 26 Apr 2016, 07:32 AM
Hi,


As I said this is not supported as a built-in feature and we do not have a viable workaround for this scenario. You can submit a feature request in our Feedback portal, so we can consider it for a future release.

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Sam
Top achievements
Rank 2
answered on 10 Jul 2017, 09:30 AM

I would also like this functionality, just like what has been acheived in the kendo for angular version.

http://www.telerik.com/kendo-angular-ui/components/layout/panelbar/

For me, panel bar is useless without this feature.

0
Nencho
Telerik team
answered on 12 Jul 2017, 06:52 AM
Hello Sam,

I am afraid that indeed the template binding in such scenario is not supported. I noticed that you had submitted another ticket on the same matter, where you have posted a code snippet of your usage. This is why, I would suggest you to continue the correspondence in the other thread, in order to avoid duplication.

Regards,
Nencho
Progress Telerik
Try our brand new, jQuery-free Angular 2 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
Kake
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Kake
Top achievements
Rank 1
Sam
Top achievements
Rank 2
Nencho
Telerik team
Share this question
or