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

Thread is closed for posting
2 posts, 1 answers
  1. Corey Mitchell
    Corey Mitchell avatar
    7 posts
    Member since:
    Nov 2009

    Posted 23 Oct 2015 Link to this post

    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?



    - Corey

  2. Answer
    Martin Yankov
    Martin Yankov avatar
    177 posts

    Posted 28 Oct 2015 Link to this post

    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.

    Martin Yankov
    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
Back to Top