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 

Question about Custom Type Editor sample.

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



Joined: 20 Nov 2007
Posts: 23
Location: Netherlands

PostPosted: Wed Oct 01, 2008 1:38 pm    Post subject: Question about Custom Type Editor sample. Reply with quote

In the Custom Type Editor sample, when a stock level is clicked (for example the first), it shows the value next to a small progress bar, in this case a value of 30. When I change this value to 40 by typing in the edit field, and then directly press the button to open the Stock Levels form, this form shows a value of 30.
Is there a way to change this behavior, so that the Stock Levels form opens with the new value?

Thanks,
Anja
Back to top
View user's profile Send private message Visit poster's website
Infralution



Joined: 28 Feb 2005
Posts: 5027

PostPosted: Wed Oct 01, 2008 11:22 pm    Post subject: Reply with quote

This looks like an issue with the UniversalEditBox control. The entered text value is only validated when focus leaves the control or the user hits the enter key. So the user would need to hit enter first and then use the button. This is not a major issue because entering text and then pressing the button is probably not the normal user behaviour, however we will fix this issue in the next release.

You could fix this in the current release by deriving from UniversalEditBox and overriding the OnEditButtonClick method as follows:

Code:
protected override void OnEditButtonClick(object sender, System.EventArgs e)
{
    if (ValidateText())
    {
         EditValue();
    }
}

_________________
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 Oct 31, 2008 5:07 am    Post subject: Reply with quote

This issue has now been fixed in the Release 3.11.0
_________________
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