[FIXED] [V0.5.3] 0.5.3 TextField Validation Broken

  1. #1

    [FIXED] [V0.5.3] 0.5.3 TextField Validation Broken

    http://forums.ext.net/showthread.php...d=832-4-1.aspx

    As mentioned here, validation for TextFields happens on page load instead of on validation action.

    Cheers,
    Timothy
  2. #2

    RE: [FIXED] 0.5.3 TextField Validation Broken

    Thanks for reporting the bug.

    This bug was caused from the fixing of another bug, see http://forums.ext.net/showthread.php...d=622-5-1.aspx

    I'll have to chew on this overnight to try and come up with a fix/workaround.
    Geoffrey McGill
    Founder
  3. #3

    RE: [FIXED] 0.5.3 TextField Validation Broken

    You got to love those ones ;)

    Cheers,
    Timothy
  4. #4

    RE: [FIXED] 0.5.3 TextField Validation Broken

    I fixed the bug and also found a temp work-around which will help solve the problem before the next release.

    If the you call the .Reset() Method of the TextField, it will clear the Validation message.

    Example

    protected void Page_Load(object sender, EventArgs e)
    {
        this.TextField1.Reset();
    }
    The permanent fix involved changing removing the "value" property from the client config object and instead call the .SetRawValue Method. This fix solves both this bug and the earlier "empty .Text" bug as linked above.

    Example

    this.SetRawValue(this.Text);
    The fix was applied to the TextField, TextArea, NumberField and DateField controls.

    Hope this helps.
    Geoffrey McGill
    Founder
  5. #5

    RE: [FIXED] 0.5.3 TextField Validation Broken

    Great thanks! Looking forward to 0.5.4 ;)

Similar Threads

  1. [FIXED] [1.2] DataView Basic Demo Broken
    By michaeld in forum Bugs
    Replies: 8
    Last Post: Nov 10, 2011, 5:41 AM
  2. [FIXED] Example/Demo site broken?
    By koss in forum Bugs
    Replies: 2
    Last Post: Jun 24, 2011, 5:08 PM
  3. [FIXED] [V0.7] ViewState Broken
    By Timothy in forum Bugs
    Replies: 1
    Last Post: Nov 17, 2008, 9:40 AM
  4. [CLOSED] Validation Broken
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Nov 04, 2008, 10:30 AM
  5. Replies: 6
    Last Post: Aug 25, 2008, 4:25 PM

Posting Permissions