[DevExpress Support Team: CLONED FROM T569907: ASPxMemo - How to determine when text is pasted using the context menu]
Unfortunately this doesn't work as expected, at least with an ASPxTextBox.
I'm using DevEx 18.2.x.
Attempting to get the value of the editor when text is pasted from a right click returns null.
(Assuming the editor was already empty when the text was pasted)
EG: in the example, memo.GetValue() will return null even though the text has in fact pasted into the editor.
In my case I'm use an ASPxTextBox rather than a memo editor.
Hi,
I replaced ASPxMemo with ASPxTextBox, and it works with no issues. Please review the video and modify the project I attached so that we can reproduce the issue locally and provide you with a solution.
Hello Paul,
Thanks for the super fast response.
I agree, your sample works, AND a test page in my own site works on a simple page.
However it doesn't work on our production page which is much more complex.
I am currently trying to isolate the issue and narrow it down so that I can provide a working example for you.
The production page has a master page, callback panel, pagecontrol, tabcontrol with hidden tabs, and several form layouts in each tabpage, along with other editors and a couple of grids. Ouch…
Interestingly, the onpaste event does fire, and if I look at txFind.inputElement.value it does contain the text pasted. However txFind.GetText() does NOT return the text that's pasted into the inputelement, UNLESS I have an alert popup before trying txFind.GetText().
txFind is the clientinstance name of our ASPxTextbox.
I realize you can't solve this without a working example. I'll persevere for a few hours. If I can't narrow it down, I'll readjust our thinking instead.
Here's a working example.
Based on your original sample but completely changed…
The problem is evident when the ASPxTextbox being pasted into has the Nulltext property set.
Hello,
Thank you for modifying our sample, I have successfully reproduced the issue.
It appears that we need additional time to investigate it. We will get back to your as soon as we have any results.