[CLOSED] Button width issue

  1. #1

    [CLOSED] Button width issue



    I tried to set width attribute for increase the button width, but it is not get any action.
    How can i increase the button width.

    <ext:Button ID="Btn_To" runat="server" Width="200" Text="submit"></ext:Button>
  2. #2

    RE: [CLOSED] Button width issue

    The following forum post should help if using v0.8.x, see http://forums.ext.net/showthread.php...4-1.aspx#bm247

    If using v1.0, the .Width property will function as expected.


    Hope this helps.


    Geoffrey McGill
    Founder
  3. #3

    RE: [CLOSED] Button width issue

    I tried to your code but it is not working.

    Please find attached sample file
  4. #4

    RE: [CLOSED] Button width issue

    Hi,

    Please see
    <%@ Page Language="C#" %>
    
    <%@ Register Assembly="Coolite.Ext.Web" Namespace="Coolite.Ext.Web" TagPrefix="ext" %>
    <!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">
    <head id="Head1" runat="server">
        <title></title>
    </head>
    <body>
        <style type="text/css">
            #<%= Btn_To.ClientID %>{
                width:200px!important;
            }
        </style>
        
        <form id="form1" runat="server">
            <ext:ScriptManager ID="ScriptManager1" runat="server">
            </ext:ScriptManager>
            
            <ext:ViewPort ID="ViewPort1" runat="server">
                <Body>
                    <ext:BorderLayout ID="BorderLayout1" runat="server">
                        <Center>
                            <ext:Panel ID="Pnl2" runat="server" Border="true" Header="false">
                                <Body>
                                    <table>
                                        <tr>
                                            <td>
                                                <ext:Button ID="Btn_To" runat="server" Text="Submit">
                                                </ext:Button>
                                            </td>
                                        </tr>
                                        
                                        <tr>
                                            <td>
                                                <ext:Button ID="Button1" runat="server" Text="<div style='width:178px'>Submit
    " Type="Submit">
                                                </ext:Button>
                                            </td>
                                        </tr>
                                    </table>
                                </Body>
                            </ext:Panel>
                        </Center>
                    </ext:BorderLayout>
                </Body>
            </ext:ViewPort>
        </form>
    </body>
    </html>
  5. #5

    RE: [CLOSED] Button width issue

    Hello,

    In my case the button's text is taken from resource file. Can you help please? It does not work:

    <ext:Anchor>
    <ext:MultiField runat="server" HideLabel="true">
    <Fields>
    <ext:Button runat="server" ID="btnPrintReg" Text="<div style='width:250px'><%$ Resources:Daily, ShiftBasedRegistrationDetail_Button_PrintRegistrat ion %>
    " Width="200" >
    </ext:Button>
    </Fields>
    </ext:MultiField>
    </ext:Anchor>

    Thanks in advance
  6. #6

    RE: [CLOSED] Button width issue

    Hi,

    I believe you can only have the Resources binding syntax in the property setter, and not Resources + html. This is a limitation of ASP.NET.


    The following should work.


    Example


    Text="<%$ Resources:Daily, ShiftBasedRegistrationDetail_Button_PrintRegistration %>"

    The .Width property will function as expected in the v1.0 release. No need for the work-around.


    Geoffrey McGill
    Founder

Similar Threads

  1. [CLOSED] button width IE7
    By nhg_itd in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 24, 2011, 6:51 AM
  2. [CLOSED] Center width issue
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Nov 14, 2011, 9:21 AM
  3. [CLOSED] textfield width issue
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Sep 16, 2011, 12:30 PM
  4. [CLOSED] Tooltip width issue
    By speedstepmem3 in forum 1.x Legacy Premium Help
    Replies: 1
    Last Post: Sep 09, 2011, 12:10 PM
  5. Button Width - help!!!
    By Tbaseflug in forum 1.x Help
    Replies: 5
    Last Post: May 05, 2010, 2:52 PM

Posting Permissions