Ticket T569907
Visible to All Users

ASPxMemo - How to determine when text is pasted using the context menu

created 7 years ago

Gents,

I have an ASPxMemo control with a max length set.

<dx:ASPxMemo MaxLength="1024" ID="ASPxMemo1" runat="server" ClientInstanceName="commentPopupContent"       Height="250px" Width="100%">      <ClientSideEvents KeyUp="getCharactersRemaining" KeyDown="getCharactersRemaining"/>  </dx:ASPxMemo>I'd like to show the user how many characters he has remaining.

I can get the character count from the keydown event, however, I have been unable to configure a paste event to capture the count after someone pastes text via right click or Ctrl-V.

I appreciate any suggestions.

Regards,

George

Answers approved by DevExpress Support

created 7 years ago

Hello George,

I suggest you use the approach from the How to implement the "characters remaining" functionality for ASPxTextBox and ASPxMemo using MaxLength example to accomplish your task.
Let me know if you have further questions.

    Show previous comments (3)
    DevExpress Support Team 6 years ago

      Hello,

      I've created a separate ticket on your behalf (T747298: ASPxTextBox - Value is always null when text is pasted into the editor). It has been placed in our processing queue and will be answered shortly.

        As a follow up to my previous comment, the problem I reported is only evident if the Nulltext property of the ASPxTextbox is set.
        See the separate ticket that was created for whatever follows from my example submission to Devex.

        DevExpress Support Team 6 years ago

          Hi,

          Thank you for these details. We'll have a look at the project you attached and reply to you in the ASPxTextBox - Value is always null when text is pasted into the editor ticket.

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.