Button to start a timer

4 posts, 0 answers
  1. Kyle
    Kyle avatar
    4 posts
    Member since:
    Feb 2015

    Posted 20 Mar 2015 Link to this post

    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 ?
  2. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 24 Mar 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
  4. Kyle
    Kyle avatar
    4 posts
    Member since:
    Feb 2015

    Posted 24 Mar 2015 in reply to Kiril Nikolov Link to this post

    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
  5. Kiril Nikolov
    Admin
    Kiril Nikolov avatar
    2564 posts

    Posted 25 Mar 2015 Link to this post

    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!
     
Back to Top
Kendo UI is VS 2017 Ready