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

[Solved] Editor In Grid with PopUp window Line Break issue

3 Answers 116 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Sandy
Top achievements
Rank 1
Sandy asked on 08 Apr 2011, 03:18 AM
Hi,

We are using the MVC Grid in PopUp edit mode. We are using an editortemplate to display the Telerik MVC editor for items with the UiHint("RichText") attribute.

What we are observing is that after the content of the editor is deleted completely (press backspace when there is no text to delete the implicit <p> tag - the cursor should be only a couple of pixels from the top left corner), new lines are stripped out of any content that is added. We are observing this behaviour in Firefox 3.6.16, but not in IE 8.0. When loading the window we are centering it. We are finding that commenting out the CentreWindow() function but still referring to it in the Onload event in the windows client events the new line issue is resolved, but the browser issues a javascript error regarding the missing function. Also with this function commented out the window obviously no longer centers, and also the close (x) button in the top right won't work (Update and Cancel buttons within the window work).

I've attached a sample application that should reproduce the issue.

Any advice on the issue would be appreciated.

Regards,
Mark Hetherington,
Analyst/Developer Janison Solutions.

3 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 11 Apr 2011, 10:08 AM
Hi Sandy,

I have upgraded your project to a more recent version and it seems to work. I used the 2010.3.1318 build which is the latest version of the Q3 2010 release (the one which you are using). You can also try the latest official release Q1 2011.

Regards,
Atanas Korchev
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
Sandy
Top achievements
Rank 1
answered on 12 Apr 2011, 05:17 AM
Hi,

I've downloaded and tested the updated application, and still find the problem in Firefox 3.6.16.

I've attached a zip with screenshots showing the issue.

Screen1 - After starting application click Edit button in first row.

Screen2 - Delete the text (note the cursor is still indented and positioned down, it appears it is still wrapped in <p> tags).

Screen3 - Press backspace again so that we delete all whitespace between the cursor and the start of the document.

Screen4 - press update and return to grid.

screen5 - click edit button in first row (Note:no whitespace in front of cursor)

screen6 - type "one<enter>two<enter>three<enter>" to give multiple lines of text. Note that the line spacing is compressed, and the "format" dropdown states format instead of paragraph.

Screen7 - Click update and return to grid.

Screen8 - Click edit button in first row - New lines have been lost.

Screen9 - Select "paragraph" from format, and then add new lines of text 'four', 'five' and 'six'. (note the line spacing is increased, presumably <p> tags are separating the lines now).

screen10 - after clicking update and returning the edit the item, line spacing is maintained.
0
Alex Gyoshev
Telerik team
answered on 14 Apr 2011, 11:40 AM
Hello Sandy,

We just fixed the issue -- the fix will be available with the upcoming service pack that will be released this week. Thank you for the detailed steps to reproduce the problem -- your Telerik points have been updated.

Kind regards,
Alex Gyoshev
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
Tags
Editor
Asked by
Sandy
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Sandy
Top achievements
Rank 1
Alex Gyoshev
Telerik team
Share this question
or