Insert table dialog not working

5 posts, 0 answers
  1. Jose Luis
    Jose Luis avatar
    3 posts
    Member since:
    Dec 2008

    Posted 07 Sep 2011 Link to this post

    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, 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

  2. Iva Toteva
    Iva Toteva avatar
    1319 posts

    Posted 08 Sep 2011 Link to this post

    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.

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

  3. Jose Luis
    Jose Luis avatar
    3 posts
    Member since:
    Dec 2008

    Posted 09 Sep 2011 Link to this post


    Manually instantiating the dialogs solved the problem.

    Thank you very much.
  4. Tayyab
    Tayyab avatar
    7 posts
    Member since:
    Jul 2012

    Posted 09 Aug 2012 Link to this post


    Can you please tell me how you manually open it. I saw the source code but didn't able to get it
  5. Petya
    Petya avatar
    989 posts

    Posted 13 Aug 2012 Link to this post

    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,
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top