[CLOSED] Can not change EmptyText

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1

    [CLOSED] Can not change EmptyText

    When you set EmptyText, it injects the old EmptyText as the text value of the textfield. It's very subtle but after you press Change Empty Text, put your cursor in the textbox.

    The only workaround is to set the Empty Text and if the textfield was empty in hte first place, clear it.

    <!DOCTYPE html>
    <html>
    <head id="Head1" runat="server">
        <style type="text/css">
            
        </style>
    </head>
    <body>
        <form id="Form1" runat="server">
        <ext:ResourceManager ID="ResourceManager1" runat="server" ScriptMode="Debug" Theme="Gray"
            DisableViewState="true" />
        <ext:TextField runat="server" ID="txtField" EmptyText="Initial Empty Text" Width="300">
        </ext:TextField>
        <ext:Button runat="server" Text="Change Empty Text">
            <Listeners>
                <Click Handler="#{txtField}.emptyText = 'New Empty Text';">
                </Click>
            </Listeners>
        </ext:Button>
        </form>
    </body>
    </html>
    Last edited by Daniil; Jan 31, 2013 at 3:43 AM. Reason: [CLOSED]

Similar Threads

  1. [CLOSED] Keep EmptyText on Focus
    By SouthDeveloper in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Dec 12, 2012, 10:24 AM
  2. [CLOSED] EmptyText GridPanel
    By osef in forum 2.x Legacy Premium Help
    Replies: 2
    Last Post: Sep 04, 2012, 6:45 PM
  3. [CLOSED] Change the syle of EmptyText
    By RCN in forum 2.x Legacy Premium Help
    Replies: 3
    Last Post: Jun 04, 2012, 7:25 PM
  4. [1.0] Field EmptyText
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 4
    Last Post: Mar 11, 2010, 3:47 PM
  5. TextField.EmptyText and Radio's
    By dlouwers in forum 1.x Legacy Premium Help
    Replies: 5
    Last Post: Jan 13, 2009, 12:26 PM

Posting Permissions