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

How to highlight a button which is clicked

1 Answer 416 Views
Button
This is a migrated thread and some comments may be shown as answers.
Chandz
Top achievements
Rank 2
Chandz asked on 03 Feb 2016, 05:10 PM

Hello telerik team,

 I am developing an aspx page (C#, ASP.Net),

In my webform i have four buttons with its own functionality aligned similar to tabs.

If i click  button1, then button1 should be highlighted and automatically all the other three buttons should not be highlighted, vise versa to all the three buttons.

Only one clicked button should be highlighted at a time.

Is there any easy ways to achieve it..

Thanks in advance.

Will be more grateful if u people replied a bit faster..

1 Answer, 1 is accepted

Sort by
0
Danail Vasilev
Telerik team
answered on 08 Feb 2016, 09:35 AM
Hello Chandz,

The easiest approach is to configure a RadButton as a RadioButton. See details here - http://demos.telerik.com/aspnet-ajax/button/examples/radiosandcheckboxes/defaultcs.aspx. The radio buttons have a radio button icon CssClass configured, but you can simply remove it.

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
Chandz
Top achievements
Rank 2
Answers by
Danail Vasilev
Telerik team
Share this question
or