I am trying to dynamically add an "InsertTable" toolbar menu button to a WebHtmlEditor.
I have tried the following (which is run from the page's PreRender handler)
Dim ret As New ToolbarMenuButton(ToolbarMenuButtonType.InsertTable) Dim item As New HtmlBoxMenuItem(ActionType.TableProperties) item.Dialog.InternalDialogType = InternalDialogType.InsertTable ret.Menu.Items.Add(item) editor.Toolbar.Items.Add(ret)
I get an exception on the third line - the Dialog property is nothing (null)
Hello,
Check out this blog post that talks about how to add custom toolbar buttons with dialogs.
http://community.infragistics.com/blogs/engineering/archive/2010/08/25/webhtmleditor-how-to-build-toolbar-button-with-custom-dialog.aspx
Hope this helps.
-Taz.