Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
935
WebTextEditor with NullText cannot be cleared via Javascript
posted

Hi All,

I am using Infragistics v11.2.20112.2086. I have two text boxes with the NullText property set.

a. The user enters a value in TextBox A

b. clicks a checkbox to copy the value to text box B.

c. When the user then clears text box A, it clears text box B successfully via a javascript function.

postalField.set_text(source.get_text());

However, if step a is skipped, i.e. text bos B is not given a non-blank value initially, then this text box can never be completely blank. If the user enters text in text box A and immediately clears the text in text box A, the text box B is not cleared.

I have confirmed that if If I leave NullText property blank for the text box, this issue does not exist.

I am currently setting the value to " " if it sender.get_text() if it is blank and this seems to fix the issue for now.

Is there any other alternative to solve this problem?

Thanks!