Kendouimobile button badge broken in Android

3 posts, 0 answers
  1. Durendal
    Durendal avatar
    6 posts
    Member since:
    May 2011

    Posted 27 Dec 2013 Link to this post

    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. Durendal
    Durendal avatar
    6 posts
    Member since:
    May 2011

    Posted 28 Dec 2013 Link to this post

    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....
  3. Iva Koevska
    Admin
    Iva Koevska avatar
    286 posts

    Posted 30 Dec 2013 Link to this post

    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.
Back to Top