Welcome, Guest. Please login or register.
Did you miss your activation email?
Jul. 05, 2008, 04:53:03 PM
45332 Posts in 9917 Topics by 4987 Members
Latest Member: peepahk
News: PRADO 3.1.1 is released!
 
The PRADO Community » Prado v3.x » Feature Requests » Validation improvement « previous next »
Pages: [1] Print
Author Topic: Validation improvement  (Read 2214 times)
vincedev
Senior Member
***

Karma: 12
Offline Offline

Posts: 349


Weather seems cold today...


View Profile
« on: Jun. 08, 2007, 07:57:17 AM »

Hi,

I have a new request about validators, sample:

1- I have a TTextBox linked to a TRequiredFieldValidator (or any other client validator) displayed in dynamic.
2- I validate with the textbox empty so the error message appear and the button is pushed to the right by the error message
3- I fill the textbox, but when i want to click on the button, the error message disapear so the button is moved to the left, and i must re-click

Sample.page
Code:
<com:TTextBox ID="textbox" />
<com:TRequiredFieldValidator ControlToValidate="textbox"
Display="Dynamic"
ErrorMessage="blah blah blah blah"
ValidationGroup="v1" />
<com:TButton Text="Click Me..." ValidationGroup="v1" />

I think this is due to the fact that the onblur event on the textbox is lauched before the onclick of the button, it's not a critical bug, but if  there's an easy way to invert events order (maybe a timer of 0,000000000001 s will be enough)...

Thanks

Vince

Logged

.......Vince.......
rdhatch
Junior Member
**

Karma: 1
Offline Offline

Posts: 17


View Profile
« Reply #1 on: Jun. 10, 2007, 03:09:20 PM »

Yes, I have the same problem.  Must click twice on a buttton because of onBlur().
Logged
DaMule
Senior Member
***

Karma: 10
Offline Offline

Posts: 245


Sam Hennessy


View Profile WWW
« Reply #2 on: Jun. 12, 2007, 03:07:56 PM »

I have this problem too, I also get it when using the validation summary.
Logged

vincedev
Senior Member
***

Karma: 12
Offline Offline

Posts: 349


Weather seems cold today...


View Profile
« Reply #3 on: Jun. 12, 2007, 03:40:58 PM »

Ok, so as we are 3 now, i suppose that i can post a little ticket !!!
Logged

.......Vince.......
vincedev
Senior Member
***

Karma: 12
Offline Offline

Posts: 349


Weather seems cold today...


View Profile
« Reply #4 on: Jun. 12, 2007, 03:47:43 PM »

ok, done: http://trac.pradosoft.com/prado/ticket/648
Logged

.......Vince.......
rdhatch
Junior Member
**

Karma: 1
Offline Offline

Posts: 17


View Profile
« Reply #5 on: Jun. 14, 2007, 12:23:16 AM »

lol
Logged
tof06
PRADO v3.x Developer
Platinum Member
*****

Karma: 57
Offline Offline

Posts: 669



View Profile
« Reply #6 on: Jul. 24, 2007, 03:58:15 PM »

Should be fixed in latest trunk.
Because I can't change event order, I add a 250 ms delay before hiding the message. So, the click can occur on the button before it moves.
The "pause" only occurs when Display is Dynamic, and only when hiding the error message
Verified all validators functional tests : All are ok.


Cheers,
Tof.

Logged
DaMule
Senior Member
***

Karma: 10
Offline Offline

Posts: 245


Sam Hennessy


View Profile WWW
« Reply #7 on: Jul. 25, 2007, 06:09:53 AM »

thanks Tof, great work!
Logged

Pages: [1] Print 
« previous next »
Jump to: