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

RadGrid Batch Edit Mode Not Supporting Line Break HTML tag

3 Answers 21 Views
Grid
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 07 Aug 2014, 09:21 PM
I am converting \n to <br> upon binding for my RadGrid which displays correctly. We are using multiline RadTextBoxes instead of the single line.
When I click in the cell to edit however the text for editing is blank. It only has this behavior when a <br> line break tag is in the bound text. Any thoughts?

Version: 2013.07.17

3 Answers, 1 is accepted

Sort by
0
David
Top achievements
Rank 1
answered on 08 Aug 2014, 12:27 PM
I am attaching a sample project to show this in action.

http://1drv.ms/1zZLvNI
0
David
Top achievements
Rank 1
answered on 08 Aug 2014, 04:00 PM
I was able to resolve my issue by utilizing the BatchEditGetCellValue, BatchEditSetCellValue, BatchEditGetEditorValue and BatchEditSetEditorValue events along with some JS methods to convert html line breaks to environment line breaks and environment line breaks to html line breaks along with stripping environment line breaks.

I utilized the sample located at http://www.telerik.com/help/aspnet-ajax/grid-batch-editing.html to come up with my solution.

The updated working project source zip is located at the following URL:
http://1drv.ms/1r0oNnK

You will need to place the Telerik DLLs in after unzipping. Version tested is 2014.2.618.45.
0
David
Top achievements
Rank 1
answered on 08 Aug 2014, 04:02 PM
My apologies, I have updated this reply to fix the hyperlinks.

I was able to resolve my issue by utilizing the BatchEditGetCellValue, BatchEditSetCellValue, BatchEditGetEditorValue and BatchEditSetEditorValue events along with some JS methods to convert html line breaks to environment line breaks and environment line breaks to html line breaks along with stripping environment line breaks.

I utilized the sample located at http://www.telerik.com/help/aspnet-ajax/grid-batch-editing.html to come up with my solution.

The updated working project source zip is located at the following URL:
http://1drv.ms/1r0oNnK

You will need to place the Telerik DLLs in after unzipping. Version tested is 2014.2.618.45.
Tags
Grid
Asked by
David
Top achievements
Rank 1
Answers by
David
Top achievements
Rank 1
Share this question
or