Inserting new row in table issue.

6 posts, 0 answers
  1. muhammad
    muhammad avatar
    28 posts
    Member since:
    Jul 2010

    Posted 22 Aug 2012 Link to this post

    Hi,
        I have found that if you add a new row in table it selects the whole new row which is fine but if you want to add an other row by right clicking to selected row it disable all the options in insert menu from context menu. Any work around for the issue?

    Regards.
  2. Todor
    Admin
    Todor avatar
    168 posts

    Posted 24 Aug 2012 Link to this post

    Hello Muhammad,

    If you have added a row using the context menu or the ribbon, the new row will be selected. In order to be able to add a new row again, you should just clear the selection by clicking the left button somewhere in the new row. Then you will be able to insert another row from the Insert part of the context menu.

    Hope this helps.

    Regards,
    Todor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. muhammad
    muhammad avatar
    28 posts
    Member since:
    Jul 2010

    Posted 24 Aug 2012 Link to this post

    Todor,
                Thanks for your reply. Yes it works in that way but its an overhead of an extra click each time. If you have to add new 100 rows or more then you can imagin the pain of an other click on some other place in the row. Is there any plan for removing this bug?
  5. Todor
    Admin
    Todor avatar
    168 posts

    Posted 27 Aug 2012 Link to this post

    Hi Muhammad,

    At this point we have not planned to change the cases when the commands can be executed. What you can do is to handle the CommandExecuted event of RadRichTextBox and clear the selection from the newly inserted row/column. In this way, there will be no selection in the document after the command for adding a row/column has been executed and it will be possible to execute the command again. Here is how this can be done:
    void radRichTextBox1_CommandExecuted(object sender, CommandExecutedEventArgs e)
    {
        if (e.Command is InsertTableRowCommand || e.Command is InsertTableRowAboveCommand || e.Command is InsertTableRowBelowCommand ||
            e.Command is InsertTableColumnCommand|| e.Command is InsertTableColumnToTheLeftCommand|| e.Command is InsertTableColumnToTheRightCommand)
        {
            ((RadRichTextBox)sender).Document.Selection.Clear();
        }
    }

    I hope this helps.

    Greetings,
    Todor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. muhammad
    muhammad avatar
    28 posts
    Member since:
    Jul 2010

    Posted 28 Aug 2012 Link to this post

    Todor,
              Thanks for your reply. I already have implemented this method, But need some more discrete solution for the problem.

    Regards,
  7. Todor
    Admin
    Todor avatar
    168 posts

    Posted 30 Aug 2012 Link to this post

    Hello Muhammad,

    As previously mentioned, we have not scheduled this task yet. We have logged it in our public issue tracking system. Here you can observe its status.
     
    Kind regards,
    Todor
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner