Jul 02, 2008, 3:59 PM
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.