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

Insert table dialog not working

4 Answers 87 Views
RichTextBox
This is a migrated thread and some comments may be shown as answers.
Jose Luis
Top achievements
Rank 1
Jose Luis asked on 07 Sep 2011, 05:13 PM
Hello,
We are using Telerik RadControls for Silverlight 4 Q1 2011.

In a development computer with said controls installed we can use the RadRichTextBox.ShowTablePropertiesDialog() method and we can see the control's context menu. In other developer's computers using the same source code but no controls installed, the context menu is not shown and the ShowTablePropertiesDialog call doesn't display anything. It doesn't fail either.
We added to the project all the references listed in http://www.telerik.com/help/silverlight/radrichtextbox-frequently-asked-questions.html#Assembly_References, and double-checked they are included in the .xap to no avail until now.

Is there something we might be missing in order for these features to work?

Thank you in advance for your help


4 Answers, 1 is accepted

Sort by
0
Iva Toteva
Telerik team
answered on 08 Sep 2011, 05:24 PM
Hi Jose Luis,

We have not encountered such an issue before and were not able to reproduce it with the Q1 2011 (2011.1.315) version of the controls.
The only thing special about the table dialogs is that they can only be shown when the caret is positioned inside a table. When the caret is not inside a table, the ShowTablePropertiesDialog and ShowTableBordersDialog will not be opened. The respective commands for showing them will not be executed, whereas the methods will throw an exception.
If you have enabled library caching, none of the dialogs will work. You can ascertain that by trying to show any of the other pop-ups like the SelectionMiniToolBar (which is shown when you select some text), the ContextMenu (shown on RightMouseButtonDown), InsertHyperlinkDialog (RightClick->Hyperlink...). If neither of those work, you would need to manually instantiate them, as done in the TelerikEditorExample constructor in our online demo. You can preview the code by switching to the Source tab in the top right corner.
In case that does not help, we would appreciate it if you could send us the project in a support ticket.

Greetings,
Iva
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Jose Luis
Top achievements
Rank 1
answered on 09 Sep 2011, 08:58 AM
Hello,

Manually instantiating the dialogs solved the problem.

Thank you very much.
0
Tayyab
Top achievements
Rank 1
answered on 09 Aug 2012, 04:06 PM
Hello 

Can you please tell me how you manually open it. I saw the source code but didn't able to get it
0
Petya
Telerik team
answered on 13 Aug 2012, 02:22 PM
Hi Tayyab,

You can find information about the discussed topic, as well as the code for manually instantiating the dialogs in this article

If this does not fix your issue, could you please elaborate a bit on your scenario. Is it related to table dialogs or you are unable to see all dialogs?

Kind regards,
Petya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
RichTextBox
Asked by
Jose Luis
Top achievements
Rank 1
Answers by
Iva Toteva
Telerik team
Jose Luis
Top achievements
Rank 1
Tayyab
Top achievements
Rank 1
Petya
Telerik team
Share this question
or