As the subject title says...
I have a XamTextEditor control on my XBAP GUI, and I set its IsAlwaysInEditMode property to true. However, when I click in the box, change the value (thus updating Text and Value properties) and then click away (so that it loses focus), the OriginalValue property updates to be the same as the Text and Value properties.
I thought that if IsAlwaysInEditMode is set to true, OriginalValue doesn't get updated until EndEditMode() is called.
If I am wrong, how can I get this behaviour, so that I can keep track of the original value until such time that the newly-entered value is accepted (by way of another button on the form being pressed)?
Yes, indeed. I believe at this point it is best to contact our Developer Support department directly - they can be reached athttp://ko.infragistics.com/support/Thanks.
Hi Alex, thanks for your reply.
The OriginalValue property doesn't actually change until after the LostFocus event handler. If you try your program again, do what you did, then click back in the XamTextEditor control and back out of it again to invoke the LostFocus event handler, you will find that OriginalValue has taken on the value you put in the text box the first time. This shouldn't occur until EndEditMode() is called if IsAlwaysInEditMode is set to true.
Hello,
The original value of the XamTextEditor is always null if you have not entered text initially. If you have some text as content, then the original value will be this text. I have created a simple application and handled the LostFocus event and examine the OriginalValue property and it is not changed.
Am I missing something? If that, paste me some source code to take a quick look.