Badge: Issues (2 of 2)

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

    Posted 21 Nov 2013 Link to this post

    ISSUE #2:  

    The way you implemented badges if you reset the badge value during a
    page session it stacks the values on top of each other. Now if you use
    false to turn it off it only turns off the last value.

    http://jsfiddle.net/ccarns/vNfjK/

    Here is the fiddle and steps to repo:


    Step 1: Click "Set Count to 5"
    Step 2: Click "Set Count to 10"
    Step 3: Click "Set count to 0 Enhanced"


    PS Using the latest version at the time:
    v2013.3.1119
  2. Answer
    Craig
    Craig avatar
    43 posts
    Member since:
    Aug 2013

    Posted 21 Nov 2013 Link to this post

    OK I saw what I was doing wrong, fixed version is here:
     http://jsfiddle.net/ccarns/vNfjK/6/

    I was reinitializing the widget
    $('#button').kendoMobileButton({badge: num});
    instead of just updating the value
    $("#button").data("kendoMobileButton").badge(num);
    subtle but crucial.
    ISSUE #1 is still an issue.
  3. Kendo UI is VS 2017 Ready
Back to Top