Infralution Support Forum Index Infralution Support
Support groups for Infralution products
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Possible bug with Validating and Validation event

 
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support
View previous topic :: View next topic  
Author Message
mike_girkin



Joined: 11 May 2011
Posts: 7

PostPosted: Thu May 26, 2011 9:37 am    Post subject: Possible bug with Validating and Validation event Reply with quote

I've encountered a very strange behaviour of the control. This behaviour is very related to mechanism of losing focus, in-grid editing and firing Validation and Validated event.
So I had to cases:

1. User edited the value in the cell, than clicked somewhere inside the VirtualTree. The event fired in the following order (I just put the related events)
- Validating
- Validated
- SetCellValue

2. User edited the value in the cell, than clicked somewhere outside the VirtualTree (say textbox in the same form). The event fired in the following order (I just put the related events)
- SetCellValue
- Validating
- Validated

I use SetCellValue event handler to save data to the database. But the thing is, that in the second case, the virtualtree tries to save not validated data!

Is it the expected behavoiur? I am very concerned, how should I organize my logic to have the values validated before saving into the database.
Back to top
View user's profile Send private message AIM Address
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri May 27, 2011 12:03 am    Post subject: Reply with quote

You are right there is definitely an issue there. The fix looks relatively straightforward so we should be able to get bugfix release out later today.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Fri May 27, 2011 4:12 am    Post subject: Reply with quote

Version 4.1.1 has just been released and fixes this issue.
_________________
Infralution Support
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Infralution Support Forum Index -> Virtual Tree Support All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group