FormDecorator + ModalPopup + Button Width

4 posts, 0 answers
  1. James Legan
    James Legan avatar
    54 posts
    Member since:
    Sep 2008

    Posted 23 Oct 2008 Link to this post

    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
  2. Martin
    Admin
    Martin avatar
    585 posts

    Posted 24 Oct 2008 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. James Legan
    James Legan avatar
    54 posts
    Member since:
    Sep 2008

    Posted 24 Oct 2008 Link to this post

    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
  5. Martin
    Admin
    Martin avatar
    585 posts

    Posted 27 Oct 2008 Link to this post

    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.
Back to Top