Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
215
Dyamically adding InsertTable to toolbar
posted

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)

Parents
No Data
Reply Children
No Data