RadTextBox Copy Paste

4 posts, 0 answers
  1. Mayur
    Mayur avatar
    34 posts
    Member since:
    Mar 2012

    Posted 20 May 2014 Link to this post

    I have a multiline radtextbox with maxlength property in which i want copy paste functionality to work ,when i copy some data and paste in radtextbox its showing javascript error in IE,when i remove maxlength its allowing me to copy paste,but i want maxlength property also.



    Please Suggest



    Thanks.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 20 May 2014 in reply to Mayur Link to this post

    Hi Mayur,

    Unfortunately I couldn't replicate the issue at my end. Please have a look into the sample code snippet which works fine at my end. The MaxLength property of RadTextBox will sets the maximum number of characters allowed in the text box. So if you are pasting a content which length is greater than MaxLength then RadTextBox will show only the allowed number of character. Please provide your full code if it doesn't help.

    ASPX:
    <telerik:RadTextBox ID="RadTextBox1" runat="server" TextMode="MultiLine" MaxLength="10">
    </telerik:RadTextBox>

    Thanks,
    Shinu.
  3. Mayur
    Mayur avatar
    34 posts
    Member since:
    Mar 2012

    Posted 20 May 2014 in reply to Shinu Link to this post

    Hi,

    I have attached video to get clear idea of issue and also check browser setting which is shown in video.

    Thanks.
  4. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 21 May 2014 in reply to Mayur Link to this post

    Hi Mayur,

    With reference to this forum thread RadTextBox have Issue with Copy/Paste in MultiLine TextMode. If you are using older Telerik version please try to upgrade the Telerik version.

    Thanks,
    Shinu.
Back to Top