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

Paste text with <crlf> into cell.

3 Answers 62 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Kipp
Top achievements
Rank 1
Kipp asked on 01 Feb 2013, 12:07 AM
I want my users to be able to paste multiple paragraphs of text into a cell.  However, when I paste text with more than one paragraph into a cell it is truncated to the first paragraph.

3 Answers, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 01 Feb 2013, 12:46 PM
Hello Kipp,

Thank you for writing.

I can confirm that RadGridView does not behave correctly in this case. I have added this issue as a bug report to our Public Issue Tracking System. Feel free to add your vote for it and subscribe for status updates here: http://www.telerik.com/support/pits.aspx#/public/winforms/14168

Unfortunately, I am not able to provide you with a valid work around at this moment.

I have updated your Telerik Points for this report.

I hope that you find this information useful. Please excuse us for the introduced inconvenience.

Kind regards,
Plamen
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
0
Kipp
Top achievements
Rank 1
answered on 01 Feb 2013, 01:43 PM
I was able to do this by setting the [Multiline] property of the specific COLUMN to True.
0
Plamen
Telerik team
answered on 04 Feb 2013, 04:50 PM
Hi Kipp,

Thank you for writing back with your findings.

It seems that I had a different idea of what you are looking for. Your case seems to concern pasting in an editor of RadGridView rather than in a cell directly.

Generally speaking, if you try to paste multiple paragraphs into a cell that is not in edit mode, and there is a cell below this cell, the first paragraph will go to the target cell and the second paragraph will go to the cell below. If there is no cell below the target cell, the second paragraph will be truncated. 

In your case, however, where you want to paste paragraphs in a cell while it is in edit mode, you should set the Multiline property of the appropriate column to true, just like you have found out.

Please accept my apologies for the misunderstanding and let me know if you have additional questions.

Regards,
Plamen
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
GridView
Asked by
Kipp
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Kipp
Top achievements
Rank 1
Share this question
or