Badge: Issues (1 of 2)

2 posts, 0 answers
  1. Craig
    Craig avatar
    43 posts
    Member since:
    Aug 2013

    Posted 21 Nov 2013 Link to this post

    ISSUE #1:

    I tested and found you can not apply a badge with value of 0 (zero).
    I can understand the original logic why - however it is problematic with dynamic updates of the value via jQuery.   Instead of it  disappearing it does nothing and leaves the old value.
    <div id="foo" data-role="view">
      <a data-role="button" data-badge="1" data-click="resetClicks">Reset Badge Count</a>
    var app = new;
    function resetClicks() {
        this.badge(0); //set new badge value

    You might consider adding another option flag:  data-badge-showzeros to handle all possibilites of user needs. Some may want to show Zero values and other not.
  2. Kamen Bundev
    Kamen Bundev avatar
    1532 posts

    Posted 26 Nov 2013 Link to this post

    Hello Craig,

    Thank you for noticing this. I've just fixed it and the fix will be available with the next internal build. I've also updated your points for the find.

    Kamen Bundev
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Back to Top