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

How to use kendo-ui databind on elements in tabstrip of layout footer

1 Answer 50 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Corey Mitchell
Top achievements
Rank 2
Corey Mitchell asked on 24 Oct 2015, 03:36 AM

I have a basic kendo-ui layout using data-role="layout" with a footer containing a tabstrip element. I would like to databind a small badge with a count over one of the buttons in the tabstrip, but it never seems to update the count in the badge.

Can this be done?

 

Thanks,

- Corey

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Yankov
Telerik team
answered on 28 Oct 2015, 12:00 PM
Hi Corey,

Thank you for contacting us.

The data-bind attribute is part of the Kendo UI MVVM implementation. It's applicable for Kendo UI Views that have the data-model attribute. The Kendo UI Tabstrip widget is a navigation widget and shouldn't be a part of the view. It should be in the Layout as in your case. This also means you can't use the data-bind attribute and benefit from the two way binding mechanism. You have to use the Tabstrip widget's badge() method. You can also see a demo example here. You can see the source code by clicking on the "<>" button in the top right corner.

Let me know if you have any questions.

Regards,
Martin Yankov
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
Corey Mitchell
Top achievements
Rank 2
Answers by
Martin Yankov
Telerik team
Share this question
or