Ticket Q304646
Visible to All Users

ASPxTextBox inside UpdatePanel - How to attach the copy / cut / past event via the jQuery

created 14 years ago

Hi there. I've attached two files test2.aspx and test3.aspx
Test2 shows an ASPxTextBox bound to JQuery code to detect a copy or paste operation in the textbox. It works.
Test3.aspx is the same code, except it's in an ASP.Net Wizard control, it doesn't work. The document ready method only fires the first time the page is loaded, not when a step is navigated to.
Any idea as to what I must change in order to get this to work?
Thanks

Show previous comments (2)

    Actually, it works in IE, but not FireFox 3.6. In FF, the page shows the upload panel progress indicator and the jquery doesn't work.
    I narrowed it down to this line:
    prm.add_pageLoaded(pageLoaded); changing it to endRequest helped, but didn't resolve.
    Test file attached.

      Hello Norman,
      Thank you for the response. As I said earlier, the rendering of the ASPxTextBox control is rather complex, and it is necessary to attach the jQuery's event to the ASPxTextBox's input element, and it is not required to attach the jQuery's event again within the $(document).ready function.
      The $(document).ready function is useful when it is necessary to attach jQuery's event to the input element of the standard ASP.NET control (the asp:TextBox control in the test2.aspx WebForm).
      I have attached a modified project, illustrating the differences between using TextBoxes:

      1. test2.aspx: the standard asp:TextBox control;
      2. test3.aspx: the DevExpress ASPxTextBox inside asp:Wizard control (which is located inside UpdatePanel).
        Thanks,
        Mike

        You mention that the ASPxTextBox control is rather complex, well, you've taken the complexity out of it for me :) Thank you so much for your time and attention to my requirement. It works just fine, Norman.

        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.