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

Kendouimobile button badge broken in Android

2 Answers 23 Views
Report a bug
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Durendal
Top achievements
Rank 1
Durendal asked on 27 Dec 2013, 06:24 AM
Badge works well for IOS but is broken badly in Android. In the main page of the default template app, I've added a new button

<a id="badge-test" data-role="button" data-badge="1" data-click="app.badgeClick" data-icon="cart">Badge Test</a>

app.badgeClick = function (e) {
var inp = $("#badge-test").data("kendoMobileButton").badge();
inp++;
$("#badge-test").kendoMobileButton({ badge: inp });
};


Please see project at https://github.com/ADMS12/KendoUIMobileBadgeBroken.git

Any workaround is appreciated. Thank you.

2 Answers, 1 is accepted

Sort by
0
Durendal
Top achievements
Rank 1
answered on 29 Dec 2013, 05:34 AM
Fixed by replacing
          $("#badge-test").kendoMobileButton({ badge: inp });
with
         $("#badge-test").data("kendoMobileButton").badge(inp);

but I am not sure why the first works for iOS but not Android....
0
Iva Koevska
Telerik team
answered on 30 Dec 2013, 09:25 AM
Hi Durendal,

Thanks for reporting this and for sharing your solution.

Regards,
Iva Koevska
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
Report a bug
Asked by
Durendal
Top achievements
Rank 1
Answers by
Durendal
Top achievements
Rank 1
Iva Koevska
Telerik team
Share this question
or