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

Button to start a timer

3 Answers 426 Views
Button
This is a migrated thread and some comments may be shown as answers.
Kyle
Top achievements
Rank 1
Kyle asked on 20 Mar 2015, 03:39 PM
Hi,
 I'm running the Kendo trial and experimenting with the various controls at the moment.

One of the things i'd like to do is replicate a windows app which has a button with text "start" that functions as a toggle. When initially clicked it recognises the current text as start so starts a timer and changes its text to stop. a subsequent click recognises the text as "Stop", stops the timer and reverts the text to "Start".

Is this something that is possible with a Kendo button possibly by using some of the CSS etc that makes a button a radio button and testing the checked state ?

3 Answers, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 24 Mar 2015, 09:26 AM

Hello Kyle,

You can do this pretty easily, here is an example:

http://dojo.telerik.com/ixUsi

Regards,
Kiril Nikolov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Kyle
Top achievements
Rank 1
answered on 24 Mar 2015, 10:31 AM
Thanks Kiril,

I looked at the documentation and debugged my click event but couldn't see how/where the actual text of the button was stored but i knew it had to be simple.

Thanks again.

Kyle
0
Kiril Nikolov
Telerik team
answered on 25 Mar 2015, 08:46 AM

Hello Kyle,

 

I am happy to hear that the problem is resolved. In case you have any further questions - do not hesitate to contact us.

 

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
Button
Asked by
Kyle
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Kyle
Top achievements
Rank 1
Share this question
or