View previous topic :: View next topic |
Author |
Message |
AB
Joined: 20 Nov 2007 Posts: 23 Location: Netherlands
|
Posted: Wed Oct 01, 2008 1:38 pm Post subject: Question about Custom Type Editor sample. |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Wed Oct 01, 2008 11:22 pm Post subject: |
|
|
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 |
|
|
Infralution
Joined: 28 Feb 2005 Posts: 5027
|
Posted: Fri Oct 31, 2008 5:07 am Post subject: |
|
|
This issue has now been fixed in the Release 3.11.0 _________________ Infralution Support |
|
Back to top |
|
|
|