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

Togglebutton style same as in grid

4 Answers 203 Views
Buttons
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 04 Mar 2015, 01:03 PM
Hello Group. We would like to have the ToggleButton on a form having the same style as listed in the Grid. Currently we have the Theming set to Windows 8 and then the togglebutton is filled solid with the win-8 color. Now we would like it to have a inner border in win-8 color style.
What I did I extracted the style into our own styling dictionary file and my button is yellow (?). This yellow color is verywhere so just replacing the colow does not solve this.
Can someone supply me the style for the toggle button like the one on in the Grid (having inner border)?  
Thanks,

    Richard

4 Answers, 1 is accepted

Sort by
0
Sia
Telerik team
answered on 05 Mar 2015, 02:55 PM
Hello Richard,

I believe that you extracted the default style when Office Black theme is used. In order to provide you with more specific information, please let me know which theming mechanism you use in your project - through StyleManager or through implicit themes. Also give us more details about which toggle button in the grid's template you are pointing to. Do you use only ToggleButtons in your application or you use RadToggleButton as well?

Thank you in advance,

Sia
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Richard
Top achievements
Rank 1
answered on 13 Mar 2015, 10:46 AM
Hello,
Currently we are using the Windows 8 theme and we set the theme like this: StyleManager.ApplicationTheme = new Windows8Theme();
In our grid we use the GridViewCheckBoxColumn and that gives us checkboxes and we want to use ToggleButtons in the same style.
Thanks,

Richard
0
Accepted
Sia
Telerik team
answered on 17 Mar 2015, 02:57 PM
Hello Richard,

Thank you for the provided information. Actually the control that you see is a custom GridViewCheckBox control that inherits from Control. Please find attached a sample application showing how to apply the same template to ToggleButton and RadToggleButton. I hope that this helps.


Regards,
Sia
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Richard
Top achievements
Rank 1
answered on 18 Mar 2015, 08:47 AM
Yes thanks this was the style we were looking for !
Richard.
Tags
Buttons
Asked by
Richard
Top achievements
Rank 1
Answers by
Sia
Telerik team
Richard
Top achievements
Rank 1
Share this question
or