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

Update badge number in navBar from remote view

1 Answer 185 Views
NavBar
This is a migrated thread and some comments may be shown as answers.
Kelvin
Top achievements
Rank 1
Kelvin asked on 08 Jan 2015, 01:04 AM
I have layout, remove view.

The remove view has a button, when I tap on this button, I need 1 count to be added in the layout's navbar's button's badge.  how do I achieve that?

1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 08 Jan 2015, 02:48 PM

Hello Kelvin,

You can get a reference of the button and increase its badge number using the built-in badge() method.

Here is an example:

http://dojo.telerik.com/OzunU

You can read more about the badge method, here:

http://docs.telerik.com/kendo-ui/api/javascript/mobile/ui/button#methods-badge

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
NavBar
Asked by
Kelvin
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or