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

Editor applies a wrong style to the row after clicking Insert Row Below

1 Answer 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Eugene
Top achievements
Rank 1
Eugene asked on 19 Mar 2013, 02:16 PM

I have the following scenario:

    1. Insert a table on the page http://demos.telerik.com/aspnet-ajax/editor/examples/default/defaultcs.aspx

    2. Apply the “telerik-reTable-2” style from the Table Properties

    3. right-mouse-click on any cell of the table and select Insert Row Below (also, it may be above)

Result:

    The row has some style, but the style of the table in general becomes different from “telerik-reTable-2” (ActualResult.png attached).

Expected Result:

    The table has the style, that was previously selected – “telerik-reTable-2” (ExpectedResult.png attached).


1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Mar 2013, 02:04 PM
Hi,

The purpose of the table related Insert Row and Column commands is to insert a new row and column, respectively, without any additional attributes and styles. These commands do not have any specific logic for checking the formatting of the neighbor cells, rows and columns and do not apply any formatting to the newly created ones. Such implementation could decrease the editing performance in the content area especially when editing large content, because as you know the JavaScript execution is 10 times slower that the native code.

If you would like you can try to implement the requested feature yourself by using the OnClientCommandExecuted event and the current selection in the content area and inspecting the styles of the neighbor row.

Regards,
Rumen
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.
Tags
Editor
Asked by
Eugene
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or