override formdecorator style

3 posts, 1 answers
  1. Megan Vee
    Megan Vee avatar
    40 posts
    Member since:
    Mar 2010

    Posted 16 Sep 2010 Link to this post

    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. Answer
    Georgi Tunev
    Admin
    Georgi Tunev avatar
    7207 posts

    Posted 20 Sep 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Megan Vee
    Megan Vee avatar
    40 posts
    Member since:
    Mar 2010

    Posted 22 Sep 2010 Link to this post

    Thank you, Georgi, that worked like a charm.
    -Megan
Back to Top