This is a migrated thread and some comments may be shown as answers.

RadTextBox Copy Paste

3 Answers 190 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mayur
Top achievements
Rank 1
Mayur asked on 20 May 2014, 09:37 AM
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.

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 20 May 2014, 11:46 AM
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.
0
Mayur
Top achievements
Rank 1
answered on 20 May 2014, 12:21 PM
Hi,

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

Thanks.
0
Shinu
Top achievements
Rank 2
answered on 21 May 2014, 11:20 AM
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.
Tags
General Discussions
Asked by
Mayur
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Mayur
Top achievements
Rank 1
Share this question
or