Community & Support
Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > FormDecorator > Set width of a button

Answered Set width of a button

Feed from this thread
  • repairclinic avatar

    Posted on Apr 24, 2008 (permalink)

    Is there a way to keep the width set on a button when using the FormDecorator?  I set the width on the button but when the button is rendered it shrinks the width to fit the text on the button.

    I tried setting the CssClass on the button but it looks like the class is not carried through.

    Through FireBug I can set the width on the generated <a> tag that is associated with the input button but I'm not seeing how to pass through any css attributes.

    Reply

  • Answer Martin Ivanov Martin Ivanov admin's avatar

    Posted on Apr 24, 2008 (permalink)

    Hi Repairclinic,

    You may use JavaScript is the id of the rendered button to set any CSS property to it:

    document.getElementByIdId('SkinnedButton1').style.width = '100' + 'px';

    All the best,
    Martin Ivanov
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center

    Reply

  • Mark McCormack avatar

    Posted on Aug 29, 2008 (permalink)

    Is there any way to apply this change to all buttons on a form?

    Reply

  • Tervel Tervel admin's avatar

    Posted on Sep 1, 2008 (permalink)

    Hi Mark,

    The current RadFormDecorator version addresses this problem automatically, and no code needs to be used.
    Please download and try the latest available RadControls for ASP.NET AJAX and give it a try.

    In case there is a problem, please open a support ticket and send us a sample page that reproduces the problem - we will get back to you with a solution.


    Kind regards,
    Tervel
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.

    Reply

  • Malinda avatar

    Posted on Dec 27, 2009 (permalink)

    Hi

    I am facing some browser specific styling issues with the RAD form decorator styling for the buttons.

    Used skin: Vista
    Version: 2009.2.826.35

    Is there a way to have set consistent spacing within the buttons? or can we expect this to be fixed in later versions of the the Form decorator?

    Find attached an image with look and feel of the buttons in different browsers.

    Thanks
    Malinda
    Attached files

    Reply

  • Lini Lini admin's avatar

    Posted on Dec 28, 2009 (permalink)

    Hello Malinda,

    You can try getting the latest RadControls build (Q3 2009, version 2009.3.1208) and see if the buttons look better. If that does not help, please send us a sample page so we can test it here or just tell us what doctype (XHTML 1.1, 1.0, plain HTML, etc.) are you using.

    Sincerely yours,
    Lini
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Malinda avatar

    Posted on Dec 29, 2009 (permalink)

    As you requested I tried the latest version (Q3 2009, version 2009.3.1208) but couldn't see any noticeable difference.

    Below are the html declarations I use
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">

    Reply

  • Martin Ivanov Martin Ivanov admin's avatar

    Posted on Jan 4, 2010 (permalink)

    Hello Malinda,

    Please, send us a small sample project where the issue you are experiencing can be observed. I just checked with the latest version of RadControls, but unfortunately I did not see any of the issues you have reported, and I would like to look at your exact setup and version of our suite.

    All the best,
    Martin Ivanov
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Watch a video on how to optimize your support resource searches and check out more tips on the blogs.

    Reply

  • Q1 Webinar Week

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > FormDecorator > Set width of a button
Related resources for "Set width of a button"

ASP.NET FormDecorator Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]