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

2 posts, 0 answers
  1. Eugene
    Eugene avatar
    3 posts
    Member since:
    Mar 2013

    Posted 19 Mar 2013 Link to this post

    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).


  2. Rumen
    Admin
    Rumen avatar
    14010 posts

    Posted 21 Mar 2013 Link to this post

    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.
Back to Top