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

FormDecorator + ModalPopup + Button Width

3 Answers 61 Views
FormDecorator
This is a migrated thread and some comments may be shown as answers.
James Legan
Top achievements
Rank 1
James Legan asked on 23 Oct 2008, 07:35 PM
I don't have time to whip up a sample project right this second but I have been beating my head with my desk for the last 30 minutes regards this situation.

RadFormDecorator (current build)
ModalPopup
Buttons

All I am trying to do is set the width of the buttons to a static value. However, the only way I can seem to get this to occur is to alter CSS and apply that width to all buttons in the entire project. No amount of javascript fixup or setting the width of the button itself has let me achieve the desired results. Does anyone know the solution to this other than creating a child CSS with a set dimension and applying it to that subset of buttons? This screams defect, but I have to believe that something like this would be causing a few voices to speak up if it was actually a bug.

Thanks,

Jim

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 24 Oct 2008, 08:19 AM
Hello James,

We are not quite sure about the issue you have reported, because we were not able to reproduce it on our side.

I've prepared a small test page that contains both server and client buttons with several methods of setting width - by using the width property fo the <asp:button />, style="width: 100px;" for the <input type="" /> and with parent CSS class inheritance.

If possible tell us which is the exact version of RadControls that you are using. I tested the buttons that I have created with the latest version of RadControls SP2. If you are using an older version, update it. You may also check the doctype of your webpage, it should be in standards compliance mode.

If your case is different than any of the scenarios from my example, prepare a small running project, containing your layout, styles, etc and we will try to fix the problem for you.

Have a great weekend,
Martin Ivanov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
James Legan
Top achievements
Rank 1
answered on 24 Oct 2008, 12:22 PM
Sorry, your entire solution is based on HTML buttons. Our solution only employs asp:Buttons. Do you have a solution for asp:Buttons?

Thanks,

Jim
0
Martin
Telerik team
answered on 27 Oct 2008, 05:58 AM
Hello James,

In the solution I sent you on Friday, the very first button is a <asp:button />. For your convenience, I opened and copied the button declaration from my project:

<h5>Server Button</h5>
<asp:Button runat="server" ID="Button1" Text="Server Button (Width 500px)" Width="500" />

As you know, the code above renders on the client the following html:

<input type="submit" />

Which is nothing but a "html" submit button.

As FormDecorator decorates the form elements on client, not on the server, its engine works with the rendered inputs, not their server counterparts.

Please, if possible, send us a small running project, that contains everything - your layout, your styles and RadFormDecorator with the skin you intend using, so we are able to help.

All the best,
Martin Ivanov
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
FormDecorator
Asked by
James Legan
Top achievements
Rank 1
Answers by
Martin
Telerik team
James Legan
Top achievements
Rank 1
Share this question
or