Don't want TextField AllowBlank to display validation error on initial page load

  1. #1

    Don't want TextField AllowBlank to display validation error on initial page load

        <ext:TextField ID="txtUsername" runat="server" MaxLength="64" Width="200px" AllowBlank="false"
                                    BlankText="Username is required." MaxLengthText="Username can not exceed 64 characters.">
        </ext:TextField>
    When the page loads, the textbox is already in an invalid state because there are no text in it. However, from ExtJS's demo page, their textbox only shows the validation error after it looses focus. Is there a property I can set to mimic that behavior? I only want the textbox to be validated when it looses focus or if a login button on the form is clicked.
  2. #2

    RE: Don't want TextField AllowBlank to display validation error on initial page load

    Agreed.

    I've encountered a similar issue in 0.5.3. Would this be because we do not have a FormPanel?

    Cheers,
    Timothy
  3. #3

    RE: Don't want TextField AllowBlank to display validation error on initial page load

    As noted in the Bugs Forum, this bug has been fixed.

    Code will be available with the v0.6 release or now via SVN.

    Hope this helps.
    Geoffrey McGill
    Founder
  4. #4
    To resolve this issue you need to set in your code behind as follows:

    FormPanelName.Reset();

Similar Threads

  1. [CLOSED] Set selected node on initial page load
    By jchau in forum 2.x Legacy Premium Help
    Replies: 1
    Last Post: Jul 16, 2012, 11:19 AM
  2. [ Initial Page Start Loading (Mask Load) ]
    By iDevSEO in forum 1.x Help
    Replies: 2
    Last Post: Dec 29, 2011, 1:15 PM
  3. Replies: 3
    Last Post: May 20, 2011, 9:30 PM
  4. Replies: 3
    Last Post: Nov 06, 2009, 10:46 AM
  5. [CLOSED] Initial Load of ActiveTab does not display
    By bfolger in forum 1.x Legacy Premium Help
    Replies: 6
    Last Post: Aug 25, 2009, 3:13 PM

Posting Permissions