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 

Universal edit box inside virtual tree not updating fields

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



Joined: 04 May 2012
Posts: 1

PostPosted: Fri May 04, 2012 4:19 pm    Post subject: Universal edit box inside virtual tree not updating fields Reply with quote

Hi,

I have a bindable object collection which I bind to a virtual tree. The binding works perfectly in all conditions except one.

One of the fields in the virtual tree is a universal edit box which is binded to a string field. When I make a change to this field and the edit box losses focus(by selecting another control on the form) the set event of the field in the bindable object is triggered(verified with break points etc). But, if I make a change in the edit box and directly click the "OK" button of the form, the set event of the field is not getting triggered and a stale value is being sent in the request triggered by the 'Ok' button.

Is there any specific setting that has to be made to avoid this?

Thanks,
Sandeep
Back to top
View user's profile Send private message
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Sat May 05, 2012 12:46 am    Post subject: Reply with quote

Try calling VirtualTree.CompleteEdit in your handler for the OK button. This will ensure that any open editors are closed and the data updated.
_________________
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