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

iPhone-style toggle button?

4 Answers 145 Views
Button
This is a migrated thread and some comments may be shown as answers.
Al
Top achievements
Rank 1
Iron
Iron
Iron
Al asked on 03 Sep 2015, 08:32 AM

Hi,

I am not sure if this is a job for the RadButton or a checkbox but I want to know if it is possible to have a control styled like the iPhone's On/Off slider button?

4 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 03 Sep 2015, 11:07 AM
Hi,

The idea for such a toggle button is in our ToDo list for Q1 2015. In the meantime, you can use the solution provided in this feedback item: Switch Button as well as vote for its implementation.


Kind regards,
Rumen
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 03 Sep 2015, 01:56 PM
Ouch!  thanks Rumen
0
Al
Top achievements
Rank 1
Iron
Iron
Iron
answered on 04 Sep 2015, 03:16 PM

Hi Rumen,

I tried the code in the article you mentioned but it doesn't display properly. I used Metro them and edited accordingly but it just shows two images next to each other and swaps them when each radio button is clicked.

Is this the only way to achieve an iPhone styled on/off?

0
Danail Vasilev
Telerik team
answered on 09 Sep 2015, 01:30 PM
Hi Al,

The provided example is just for illustration purposes - how to override RadFormDecorator radio button sprite images in order to simulate a switch button. You can, however, share you ideas about the feature in the public feedback item, provided by my colleague.

Regards,
Danail Vasilev
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
Button
Asked by
Al
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Rumen
Telerik team
Al
Top achievements
Rank 1
Iron
Iron
Iron
Danail Vasilev
Telerik team
Share this question
or