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

override formdecorator style

2 Answers 43 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
Megan Vee
Top achievements
Rank 1
Megan Vee asked on 16 Sep 2010, 04:07 PM
Is there a way to override the formdecorator style?
I have the need for a hidden button in order to call some server-side script from a client-side action.
I have other buttons on the form that I would like decorated.
When I apply the formdecorator style, it overrides my 'hidden' buttons - which aren't really hidden, otherwise they wouldn't work, they are just set to null text, no border, no background. The formdecorator makes them visable.

Is there anyway to force my inline button styles?

e.g.
<telerik:radformdecorator id="FormDecorator1" runat="server" DecoratedControls="all" Skin="Windows7"></telerik:radformdecorator>

<asp:Button ID="RadCboAllGeographyHelper" runat="server" Text="" OnClick="RadCboAllGeographyHelper_Click" BackColor="Transparent" BorderStyle="None" />   

Thanks in advance for any help.
-Megan

2 Answers, 1 is accepted

Sort by
0
Accepted
Georgi Tunev
Telerik team
answered on 20 Sep 2010, 11:30 AM
Hello Megan,

The easiest way to do this (i.e. without modifying your code too much) is to hide the button not by setting its color to transparent but to wrap it in a container with display:none.
e.g.
<div style="display:none">
your button here
</div>


Greetings,
Georgi Tunev
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
0
Megan Vee
Top achievements
Rank 1
answered on 22 Sep 2010, 10:06 AM
Thank you, Georgi, that worked like a charm.
-Megan
Tags
FormDecorator
Asked by
Megan Vee
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Megan Vee
Top achievements
Rank 1
Share this question
or