I would like to add an InsertFormElement button programmatically.
I have used the following code from http://www.telerik.com/help/aspnet-ajax/addingstandardbuttons.html
Imports Telerik.Web.UI
...
Dim tool As New EditorTool("InsertFormElement")
tool.Type = EditorToolType.Button
RadEditor1.Tools(0).Tools.Add(tool)
tool does not appear to have a Type. I tried omitting the line:
tool.Type = EditorToolType.Button
and the code still appears to work. Why is this?
Secondly, RadEditor1.Tools(x).Tools.Add(tool) places the button at the end of tool group x.
Is it possible to position the button in a specific place within the group?
Your help would be much appreciated.
Thanking you in anticipation.
Roger
I have used the following code from http://www.telerik.com/help/aspnet-ajax/addingstandardbuttons.html
Imports Telerik.Web.UI
...
Dim tool As New EditorTool("InsertFormElement")
tool.Type = EditorToolType.Button
RadEditor1.Tools(0).Tools.Add(tool)
tool does not appear to have a Type. I tried omitting the line:
tool.Type = EditorToolType.Button
and the code still appears to work. Why is this?
Secondly, RadEditor1.Tools(x).Tools.Add(tool) places the button at the end of tool group x.
Is it possible to position the button in a specific place within the group?
Your help would be much appreciated.
Thanking you in anticipation.
Roger