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

RadTextBox multiline problem, only first line appearing.

28 Answers 852 Views
Input
This is a migrated thread and some comments may be shown as answers.
Temp
Top achievements
Rank 1
Temp asked on 07 Jul 2008, 11:46 PM
Hi I am using IE7, I have to asp:panels, one contains a readonly form and one contains the edit form. The edit form has RadTextBoxes with MultiLine set to true, and the data is loaded programmatically into them.

When I load the form into edit mode, only the first line of the text box is showing. If I type a character in the text box, the rest of the lines show up.

It seems this is because I have width="95%" in my text box. If I remove the width, or set it to a static value, all the lines show up.

Is there a workaround for this?

My text box is like this.

<

telerik:RadTextBox ID="tb1" runat="server" TextMode="MultiLine" MaxLength="1000" Rows="4" Width="50%"/>

28 Answers, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 08 Jul 2008, 03:00 PM
Hello Temp,

Could you please give us more details about your scenario? For instance which are the controls wrapping your RadTextBox and have you set some specific styles to them?

If you could send us your page declaration (aspx file) this would be of help to get to the source of the issue and find a resolution.

Kind regards,
Iana
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Temp
Top achievements
Rank 1
answered on 09 Jul 2008, 01:29 AM
Hi Iana, I'm sorry but due to deadlines we were forced to switch to asp:textbox for now, it does not display this behaviour.
If I get a chance I will come back to this and get some code prepared for you.
0
Anatoly
Top achievements
Rank 1
answered on 05 Sep 2008, 12:19 PM
Hi.
I have the same issue with RadTextBox when MultiLine is true.
0
Iana Tsolova
Telerik team
answered on 05 Sep 2008, 01:57 PM
Hi Anatoliy,

Please try updating to the latest version of RadControls for ASP.NET AJAX and check if the problem persists.

Let us know how it goes.

Kind regards,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Anatoly
Top achievements
Rank 1
answered on 05 Sep 2008, 02:45 PM
Hi.
Problem exists in version 2008.2.826.35
0
Iana Tsolova
Telerik team
answered on 08 Sep 2008, 07:13 AM
Hi Anatoliy,

I followed your scenario in order to replicate the described behavior but no avail. Please find the attached sample and let me know how it works on your end and if I missed something from your logic.

Let us know if we could help you further.

Kind regards,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Anatoly
Top achievements
Rank 1
answered on 08 Sep 2008, 07:47 AM
Hi Iana,
Archive contains only solution files and no source code on c# or vb. Please attach source code.
0
Iana Tsolova
Telerik team
answered on 08 Sep 2008, 08:42 AM
Hi Anatoliy,

Escuse me for the mistake. Find the reattached file in this post.

Greetings,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Elaine Tam Sook Ling
Top achievements
Rank 1
answered on 05 Apr 2010, 05:14 AM
Hi,

I'm facing the same problem with RadtextBox (multiline). Can I know is there any workaround for this ? And fyi, it only occured in Firefox browser.

Scenario: Typing out a multi line message in a RadTextBox (with multiline = true); as you type in which consist text of multiple lines, the text box will display a scroll bar to allow you to preview the written message. However if you continue to type where you last left off, you will not be able to view the contents as you type because the text box auto-focus back the view to the top(1st line) of the text box.

This problem is only applicable if done on the Firefox browser. (IE/Chrome has been tested and found to be working fine.)

 

<telerik:RadTextBox runat="server" ID="txtNotes" TextMode="MultiLine" Height="80px"

 

 

MaxLength="5000" Width="80%" >

 

 

</telerik:RadTextBox>

 

0
Iana Tsolova
Telerik team
answered on 07 Apr 2010, 10:42 AM
Hello Elaine,

I followed the described steps however I was not able to replicate the problem. Could you please confirm that you are using the latest version of RadControls for ASP.NET AJAX?

Kind regards,
Iana
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
svs priyan
Top achievements
Rank 1
answered on 13 Aug 2010, 09:56 AM
Hi,

I'm facing the same problem with RadtextBox (multiline). Can I know is there any workaround for this ? And fyi, it only occured in Firefox browser.

Scenario: Typing out a multi line message in a RadTextBox (with multiline = true); as you type in which consist text of multiple lines, the text box will display a scroll bar to allow you to preview the written message. However if you continue to type where you last left off, you will not be able to view the contents as you type because the text box auto-focus back the view to the top(1st line) of the text box.

This problem is only applicable if done on the Firefox browser. (IE/Chrome has been tested and found to be working fine.)

i am using  Version 2009.3.1314.35

please help me for this problem.

0
Iana Tsolova
Telerik team
answered on 16 Aug 2010, 12:12 PM
Hi,

The issue is fixed in the latest version of RadControls for ASP.NET AJAX. Try out the attached sample and let me know if it works as desired on your end.

Best wishes,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
svs priyan
Top achievements
Rank 1
answered on 16 Aug 2010, 01:08 PM
it's not working for me...

i am using FF 3.6 version.

please help me to solve this issue.
0
Stuart Hemming
Top achievements
Rank 2
answered on 16 Aug 2010, 01:15 PM
Hello there.

Are you saying that the attached sample isn't working? You are using it as supplied I trust, that is, using the trial version of Q2 2010 that was in the bin directory.

-- 
Stuart
0
Serhat Gülmez
Top achievements
Rank 1
answered on 18 Aug 2010, 12:27 PM
Hi Iana,

Actually the problem still exists. Try pasting in a long text from a web page, and paste it into the textbox in your sample project. After pasting the copied text, try typing in any random text. You see the characters you type in but as soon as the keyup event fires, textbox displays the wrong line.

This just happens in IE8. 
Telerik.Web.UI.dll version: 2010.2.713.35

Thanks
0
Iana Tsolova
Telerik team
answered on 19 Aug 2010, 08:49 AM
Hi Abdurrahman,

I followed your steps in this video. Can you let me know if I am missing something out?

Regards,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Serhat Gülmez
Top achievements
Rank 1
answered on 19 Aug 2010, 03:09 PM
Hi Ilana,

Please see this video I've recorded. All I did was to copy text from telerik.com and paste into the textbox in the project you've attached. You can see the problem in the video.

We've tried this out on several machines faced the same issue. So it does not seem to be machine specific.

Thanks
0
Iana Tsolova
Telerik team
answered on 24 Aug 2010, 02:00 PM
Hi Abdurrahman,

Thank you for the video. I was now able to replicate the issue locally.
However this is an IE8 issue which is out of our scope. You can observe the same behavior by placing the below html into an aspx page:

<textarea style="width:125px"></textarea>
<textarea style="width:125px"></textarea>

You can see what happens when you paste some text in the first and then paste it in the second textarea. For some reason IE8 loses the textarea state when the DOM tree is repainted. However in its current implementation the multiline RadInput renders styled textarea and that is why we are not able to find a fix for the issue in question.

Greetings,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Serhat Gülmez
Top achievements
Rank 1
answered on 25 Aug 2010, 09:53 AM
Hi Ilana,

I was not able to reproduce the problem you've mentioned. Can you send an aspx file, and a sample video, so that I can generate it as well. Because, we already tried the same using asp:textbox control and it works just fine.
0
Iana Tsolova
Telerik team
answered on 25 Aug 2010, 11:22 AM
Hi Abdurrahman,

Here it is:
http://screencast.com/t/OWEyOGZmY2

Regards,
Iana
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Tom
Top achievements
Rank 1
answered on 25 Jan 2011, 12:08 PM
Dear telerik,

I think you do actually have a bug in the RadTextBox under IE7.  For me under Vista, IE7 and telerik.ui.dll v 2010.2.929.35, when Multiline is set to true and a RadTextBox displays a string containing for example "firstline\r\nsecondline" only the first line is displayed in the control.  As soon as you try to edit the value, the proper text is displayed.
 If I replace the RadTextBox by an asp:TextBox there is no error; all text is displayed immediately.
0
Iana Tsolova
Telerik team
answered on 25 Jan 2011, 04:56 PM
Hello Tom,

Could you please try updating to the latest version of RadControls for ASP.NET AJAX, labeled 2010.3.1317, and check if the issue persists? Since the version you are using many fixes are applied to the control.

Best wishes,
Iana
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Tom
Top achievements
Rank 1
answered on 26 Jan 2011, 10:42 AM

Hi Iana,

The problem still exists even with 2010.3.1317.  Note I've only tested on our application with version 2.0 of .NET framework and telerik.Web.UI.

When I have a moment I'll try to send you a simple example to demonstrate the problem

 

Tom

0
Nicolas
Top achievements
Rank 1
answered on 25 Aug 2012, 03:49 AM
Has there been any updates on this one? I am facing the same issue with 2012.2.607.40

Steps
  1. Create a multiline text input box (RadTextBox)
  2. Set maxlength to 3000
  3. paste up to 3000+
  4. notice doesn't let you paste for more than 3000 characters
  5. start typing on the key board and you can type more than 3000 characters

Please advise. Thank you!

0
Vasil
Telerik team
answered on 27 Aug 2012, 08:46 AM
Hi Nicolas,

We did lot of optimizations in the code of RadInput during the Q1 and Q2 2012 and similar bug occurred in the control. However the problem was reported and it is already fixed in the service pack with version 2012.2.724. Please upgrade and let us know if you have any problems.

Greetings,
Vasil
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Shefali
Top achievements
Rank 1
answered on 17 Oct 2013, 06:34 AM
Hi,

I am also having problem with RadTextBox with multiline mode.

Here is my scenario -

I have a asp wizard control and many wizard steps in it. In the last step, I have added a user control that has 4-5 RadTextBox with multiline mode. Value in these boxes are filled on OnLoad event.  The problem is out of these 4-5 textboxes 1 textbox shows only first line of text. This is generally the first textbox or the last textbox. If I place the same user control at other place, it works fine. I am not sure what is causing this problem.

I tried to create a POC for this but id did work fine there. Please suggest a solution.

Thanks
0
Vasil
Telerik team
answered on 21 Oct 2013, 08:31 AM
Hello Shefali,

What you describe is not known problem with the RadTextBox. I would be impossible to determinate why the problem happens, since you can not replicate it outside your project, so we can't test it here. For me the logical think is that the issue is in the vary same project that you are having problems with. You can try to debug both client side and server side. Enable/Disable the JavaScript and see if the problem is caused by some C# or JavaScript code.

Regards,
Vasil
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
0
Abhay
Top achievements
Rank 1
answered on 12 Mar 2015, 11:21 AM
HI,

I have <ajaxToolkit:ModalPopupExtender........
and radtextbox
focus is on textbox and I hit enter key from keyboard this opens <ajaxToolkit:ModalPopupExtender

no where such code is written to open popup on enter key hit

please advice me on this
thank you
Tags
Input
Asked by
Temp
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Temp
Top achievements
Rank 1
Anatoly
Top achievements
Rank 1
Elaine Tam Sook Ling
Top achievements
Rank 1
svs priyan
Top achievements
Rank 1
Stuart Hemming
Top achievements
Rank 2
Serhat Gülmez
Top achievements
Rank 1
Tom
Top achievements
Rank 1
Nicolas
Top achievements
Rank 1
Vasil
Telerik team
Shefali
Top achievements
Rank 1
Abhay
Top achievements
Rank 1
Share this question
or