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

Open Table Property Page, which throw the error

3 Answers 53 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Vaughan Reed
Top achievements
Rank 1
Vaughan Reed asked on 08 Dec 2010, 04:18 AM
We have recently upgrade to the new version of the telerik.Web.UI control (2010.2.713.35) from the old version (2009).
However, once we open the table property page, it throws the error message "The ToolName property must be set!

Below is the piece of the code, we make the content editor with the EditorTools.
  EditorTool tool = new EditorTool(ep.FunctionName);
  toolGroup.Tools.Add(tool):

The rest Editor tool works fine such like Hyberlink manager, image manager ect.

In addition, we try to assign the tool.Name at code level, unlucky, it will still throw the same error.


                            EditorTool tool = new EditorTool(myEP.FunctionName);
                            toolGroup.Tools.Add(tool);
                            EditorTool tool = new EditorTool(myEP.FunctionName);
                            toolGroup.Tools.Add(tool);
                            EditorTool tool = new EditorTool(myEP.FunctionName);
                            toolGroup.Tools.Add(tool);
                            EditorTool tool = new EditorTool(myEP.FunctionName);
                            toolGroup.Tools.Add(tool);
                            EditorTool tool = new EditorTool(myEP.FunctionName);
                            toolGroup.Tools.Add(tool);

                            EditorTool tool = new EditorTool(myEP.FunctionName);
                            toolGroup.Tools.Add(tool);
                            EditorTool tool = new EditorTool(myEP.FunctionName);
                            toolGroup.Tools.Add(tool);

3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 08 Dec 2010, 09:45 AM
Hi Vaughan,

Please, see this forum thread: Image and Document dialog in Q3.

Best regards,
Rumen
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Vaughan Reed
Top achievements
Rank 1
answered on 08 Dec 2010, 11:03 PM
HI Rumem,

  Thanks for your reply, it looks pretty good, however, we experience the following issue for the rad editor.
The Table Right Click Menu does not include a ‘Delete Column’ option. We turn off the "Delete Column" tool bar as required.
HI Rumem,

  Thanks for your reply, it looks pretty good, however, we experience the following issue for the rad editor.
The Table Right Click Menu does not include a ‘Delete Column’ option. We turn off the "Delete Column" tool bar as required.
HI Rumem,

  Thanks for your reply, it looks pretty good, however, we experience the following issue for the rad editor.
The Table Right Click Menu does not include a ‘Delete Column’ option. We turn off the "Delete Column" tool bar as required.
HI Rumem,

  Thanks for your reply, it looks pretty good, however, we experience the following issue for the rad editor.
The Table Right Click Menu does not include a ‘Delete Column’ option. We turn off the "Delete Column" tool bar as required.
HI Rumem,

  Thanks for your reply, it looks pretty good, however, we experience the following issue for the rad editor.
The Table Right Click Menu does not include a ‘Delete Column’ option. We turn off the "Delete Column" tool bar as required.
HI Rumem,
HI Rumem,

  Thanks for your reply, it looks pretty good, however, we experience the following issue for the rad editor.
The Table Right Click Menu does not include a ‘Delete Column’ option. We turn off the "Delete Column" tool bar as required.

HI Rumem,

  Thanks for your reply, it looks pretty good, however, we experience the following issue for the rad editor.
The Table Right Click Menu does not include a ‘Delete Column’ option. We turn off the "Delete Column" tool bar as required.
Thanks for your reply, it looks pretty good, however, we experience the following issue for the rad editor.
The Table Right Click Menu does not include a ‘Delete Column’ option. We turn off the "Delete Column" tool bar as required.
The only way to delete a column is in the Table Wizard but you do not have the option of choosing which column is deleted, it automatically deletes the last table column and there is a button that you can enable in the Editor toolbar, but we have all of those buttons turned off by default so it would be strange to enable just the one.

  Can you please help us regard with this?

Cheers
0
Rumen
Telerik team
answered on 09 Dec 2010, 11:03 AM
Hi Vaughan,

When adding dynamically toolbar buttons all collections of RadEditor along with contextmenus collection are reset.

That is why to add a context menu for TD element with DeleteColum item you should add the following code:

EditorContextMenu tdTag = new EditorContextMenu();
tdTag.TagName = "TD";
tdTag.Tools.Add(new EditorTool("DeleteColumn"));
RadEditor3.ContextMenus.Add(tdTag);

Here are the rest of commands for TD tags:

InsertRowAbove
InsertRowBelow
DeleteRow
InsertColumnLeft
InsertColumnRight
MergeColumns
MergeRows
SplitCell
DeleteCell
SetCellProperties



Kind regards,
Rumen
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Editor
Asked by
Vaughan Reed
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Vaughan Reed
Top achievements
Rank 1
Share this question
or