We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

InsertTableCommand and ShowInsertTableDialogCommand

Thread ID:





123177 Feb 24,2016 09:53 AM UTC Mar 2,2016 04:16 AM UTC WPF 3
Tags: SfRichTextBoxAdv
Atlante Dev Team
Asked On February 24, 2016 09:53 AM UTC


I am using the SfRichTextBoxAdv component and I want to implement the InsertTableCommand in my UI.

You provide two Commands to insert the table. But I have two little questions.
With the ShowInsertTableDialogCommand, I obtain the generic form in English, but my customers are French. Is there a way to translate the form?

So I decided to create my own UI and use the InsertTableCommand, but I don't know what I need to pass to the parameter object to get my table with the number of columns and rows I want, So I just wanted to know how to pass the parameter for this command?

Thank you for your answer.



Venkatesan Mani [Syncfusion]
Replied On February 25, 2016 09:01 AM UTC

Hi Marvin,

Thank you for contacting Syncfusion support.

Regarding “ShowInsertTableDialog”:
Our SfRichTextBoxAdv WPF control provides localization support. You can localize every static text in the SfRichTextBoxAdv control to any desired language. Please find the sample from the following link.

Sample link:

Regarding “InsertTableCommand”:
In SfRichTextBoxAdv control, the InsertTableCommand inserts a 1x2 table by default. You can also specify the size of the table to be inserted using string or integer array as parameters. The following code example demonstrates how to specify the table size as parameter for InsertTableCommand.



      <RowDefinition Height="Auto"/>



    <StackPanel Orientation="Horizontal">

      <!--Insert table without parameter.-->

      <Button Content="InsertTableCommand with empty parameter" Width="150" Height="40" Margin="5" Command="Syncfusion:SfRichTextBoxAdv.InsertTableCommand" CommandTarget="{Binding ElementName=richTextBoxAdv}"></Button>

      <!--Insert table command with string parameter. The string specifies the row size and column size separated by comma.-->

      <Button Content="InsertTableCommand with string parameter"  Width="150" Height="40" Margin="5" Command="Syncfusion:SfRichTextBoxAdv.InsertTableCommand" CommandParameter="2,3" CommandTarget="{Binding ElementName=richTextBoxAdv}"></Button>

      <!--Insert table command with integer array parameter. Array contains 2 values row and column count respectively.-->

      <Button Content="InsertTableCommand with int array parameter" Width="150" Height="40" Margin="5" Command="Syncfusion:SfRichTextBoxAdv.InsertTableCommand" CommandTarget="{Binding ElementName=richTextBoxAdv}">


          <x:ArrayExtension Type="Sys:Int32">







    <Syncfusion:SfRichTextBoxAdv x:Name="richTextBoxAdv" Grid.Row="1"/>

We have also prepared a sample tried on our side to demonstrate the same. Please find the sample from following link.

Sample Link:

Venkatesan M.

Atlante Dev Team
Replied On March 1, 2016 07:32 AM UTC


Thank you, I chose the localization solution and it works well!



Venkatesan Mani [Syncfusion]
Replied On March 2, 2016 04:16 AM UTC

Hi Marvin, 

Thank you for your update.

Please let us know if you require any further assistance. We will be happy to assist you.


Venkatesan M.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon