I am trying to create something similiar to the Kindle Download page: https://read.amazon.com/, It has two buttons at the top: [CLOUD] [DOWNLOADED]
Each button can be in either a selected or non-selected state. There is always one selected (so they work as a radio button pair).
The color of the button indicates whether it is selected or not.
I like the way your CSS (MetroBlack) displays the button for button.k-state-focused, but my guess is you use that automatically, so if I click somewhere else it would lose that decoration.
Is there a way I can put decoration on the button and have it "sticky" until I click it's pair (I would implement the radio button state logic in javascript), unless there is a brilliant way to do this in css!
Each button can be in either a selected or non-selected state. There is always one selected (so they work as a radio button pair).
The color of the button indicates whether it is selected or not.
I like the way your CSS (MetroBlack) displays the button for button.k-state-focused, but my guess is you use that automatically, so if I click somewhere else it would lose that decoration.
Is there a way I can put decoration on the button and have it "sticky" until I click it's pair (I would implement the radio button state logic in javascript), unless there is a brilliant way to do this in css!
6 Answers, 1 is accepted
0
Hello Yechezkal,
Since the Button currently does not provide toggle behavior, you can manually apply CSS classes or inline styles to achieve the same behavior. The widget's click event can help you.
Regards,
Dimo
Telerik
Since the Button currently does not provide toggle behavior, you can manually apply CSS classes or inline styles to achieve the same behavior. The widget's click event can help you.
Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Sean
Top achievements
Rank 1
answered on 03 Jan 2014, 06:03 AM
Adding this functionality would be well received I'm sure. I've been looking around for a control to give my UI a yes/no toggle option and the button was my first thought.
Thanks,
Todd
Thanks,
Todd
0
Hello Todd,
You can vote for this feature at http://feedback.kendoui.com/
Regards,
Dimo
Telerik
You can vote for this feature at http://feedback.kendoui.com/
Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0

Sean
Top achievements
Rank 1
answered on 03 Jan 2014, 01:53 PM
Thanks, I was able to find the Toggle Button vote: http://feedback.kendoui.com/forums/127393-kendo-ui-feedback/suggestions/2354861-toggle-style-buttons-ui-elements . I'm hoping 2014 brings the Kendo Web control sets up to par with the ASP.NET suite, as I've had some great experiences integrating the selection available.
Happy New Year,
Todd
Happy New Year,
Todd
0

Michele
Top achievements
Rank 2
answered on 03 Sep 2014, 06:50 AM
Hello Dimo, could you please indicate which classes are necessary to make the button looking like in the "pressed" or "toggle" state?
0
Hello Paolo,
You can use the k-state-active CSS class.
Regards,
Dimo
Telerik
You can use the k-state-active CSS class.
Regards,
Dimo
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!