[FIXED] [V0.5.3] 0.5.3 TextField Validation Broken
*NEW - Coolite Toolkit Version 0.7 now available for DOWNLOAD. See also Examples Explorer.
 

Coolite Forums

Welcome Guest ( Login | Register )
 
[FIXED] [V0.5.3] 0.5.3 TextField Validation...
Subscribe
Last Login: Today @ 4:23:18 AM
Posts: 648,
Posted 7/3/2008 11:33:47 AM

Group: Coolite Premium Member & Early Adopter
http://www.coolite.com/forums/Topic832-4-1.aspx

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

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] gmail [dot] com
Coolite Toolkit 0.7 SVN (Professional Edition)
Microsoft .NET Framework 2.0
Microsoft ASP.NET Ajax 1.0

Last Login: Today @ 3:01:50 PM
Posts: 1,652,
Posted 7/3/2008 10:42:09 PM

Group: Core Development Team
Thanks for reporting the bug.

This bug was caused from the fixing of another bug, see http://coolite.com/forums/Topic622-5-1.aspx

I'll have to chew on this overnight to try and come up with a fix/workaround.
--
Geoffrey McGill
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
twitter [coolite | personal]
Last Login: Today @ 4:23:18 AM
Posts: 648,
Posted 7/4/2008 3:55:25 AM

Group: Coolite Premium Member & Early Adopter
You got to love those ones

Cheers,
Timothy


----
Timothy Grant Vogelsang
tvogelsang [at] gmail [dot] com
Coolite Toolkit 0.7 SVN (Professional Edition)
Microsoft .NET Framework 2.0
Microsoft ASP.NET Ajax 1.0

Last Login: Today @ 3:01:50 PM
Posts: 1,652,
Posted 7/4/2008 9:17:01 PM

Group: Core Development Team
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
Coolite Inc.
Development Team
Coolite Examples | Coolite API Docs | ExtJS API Docs
twitter [coolite | personal]
Last Login: Today @ 4:23:18 AM
Posts: 648,
Posted 7/4/2008 10:14:37 PM

Group: Coolite Premium Member & Early Adopter
Great thanks! Looking forward to 0.5.4


----
Timothy Grant Vogelsang
tvogelsang [at] gmail [dot] com
Coolite Toolkit 0.7 SVN (Professional Edition)
Microsoft .NET Framework 2.0
Microsoft ASP.NET Ajax 1.0

« Prev Topic | Next Topic »
Reading This Topic
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.
All times are GMT -8:00, Time now is 3:10pm