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

Badge: Issues (2 of 2)

1 Answer 68 Views
Button (Mobile)
This is a migrated thread and some comments may be shown as answers.
Craig
Top achievements
Rank 1
Craig asked on 22 Nov 2013, 12:38 AM
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

1 Answer, 1 is accepted

Sort by
0
Accepted
Craig
Top achievements
Rank 1
answered on 22 Nov 2013, 01:09 AM
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.
Tags
Button (Mobile)
Asked by
Craig
Top achievements
Rank 1
Answers by
Craig
Top achievements
Rank 1
Share this question
or