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!
Hi Viktor and Alan,
I now have another issue. Suppose text box A and text box B are both null with the null text displayed. The user enters values in text box A and clicks the checkbox, the value is correctly copied across to text box B and text box B is disabled via javascript function.
Later, the user unticks the checkbox. Text box B is enabled, however the control treats the value in text box B as null text and does not display it correctly. When I click inside text box B, the value is lost.
postalLineOne.set_text(streetLineOne.get_text());
postalLineOne.set_enabled(!sameAsStreetAddress.checked);
Again, this only happens when the default value is blank in the text boxes. If they are loaded with values initially, this issue does not happen.
I would appreciate any assistance with this query.
Thanks for the reponse. Yes, both your samples are correct. Alan's example with the checkbox is exactly what we are doing.
Thanks for confirming that the issue is fixed in the new version. We will use the temporary fix for now until we upgrade to the next version.
Hello,
I put together a sample to test with that does what I believe you have described above only my sample doesn't work correctly in NetAdvantage 2011 Volume 2 service release 2086 or the latest service release 2225. When testing with NetAdvantage 2012 Volume 2 service release 2121 my sample works as I expect. Does the sample that I have attached demonstrate the issue that you are seeing? If so I recommend upgrading to a later volume of NetAdvantage.
If my sample isn't an accurate representation of what you are doing, please provide me with an example that I can test with so I can make a more appropriate suggestion.
Let me know if you have any questions with this matter.
Hi,
Thank you for report.
I tried to build a sample, which would reproduce that issue, but I probably did not understand description. I tried following codes and all possible combinations to enter text, copy, etc. All scenarios worked correctly, or at least, as I expected.
<ig:WebTextEditor ID="WebTextEditor1" runat="server" NullText="Null"></ig:WebTextEditor><ig:WebTextEditor ID="WebTextEditor2" runat="server" NullText="Null"></ig:WebTextEditor><input type="button" value="copy" onclick="$find('WebTextEditor2').set_text($find('WebTextEditor1').get_text())" />If that sample is not correct, then please provide codes and and exact steps to reproduce misbehavior. You may copy/paste codes within Description. If codes long, or format will become unreadable, then you may zip your sample file and attach it within Options tab.