New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

DefaultToolAdapter Object

The DefaultToolAdapter object exposes the following public methods and properties to control its behavior:

DefaultToolAdapter Client-Side Methods

NameParametersReturn TypeDescription
createContextMenusForces the context menus of the RadEditor to render.
enableContextMenusBooleanSets the enable/disable state of the context menus.The method takes the following arguments: value - Indicates whether to disable or enable the context menus.
get_animationDurationNumberReturns the animation duration in milliseconds.
get_animationTypeTelerik.Web.UI.Editor.EditorToolBarAnimationTypeGets the animation type.
get_contentAreaModeTelerik.Web.UI.EditorContentAreaModeReturns the value set to the ContnetAreaMode property.
get_editorTelerik.Web.UI.RadEditorReturns the RadEditor instance initialized the toolbar.
get_toolbarHolderTelerik.Web.UI.RadWindowReturns the RadWidnow instance which serves as a toolbar for the editor (NOTE: With Default and RibbonBar toolbar modes, returns null).
get_toolJSONArrayReturns an array with the JSON literals of the tools.
get_toolsArrayReturns all tools/commands available in the toolbar.
get_windowTelerik.Web.UI.RadWindowReturns the RadWidnow instance which serves as a toolbar for the editor (NOTE: With Default and RibbonBar toolbar modes, returns null).
getContextMenuByTagNameStringTelerik.Web.UI.EditorContextMenuReturns a reference to the context menu objectThe method takes the following arguments: tagName - The Tag name of the context menu
getToolByNameStringTelerik.Web.UI.EditorButtonReturns a reference to a tool, specified by its name.The method takes the following arguments: toolName - The name of the tool
set_animationDurationNumberSets the animation duration in milliseconds.The method takes the following arguments: value - The animation duration in ms.
set_animationTypeTelerik.Web.UI.Editor.EditorToolBarAnimationTypeSets the animation type.The method takes the following arguments: value - Instance of Telerik.Web.UI.Editor.EditorToolBarAnimationType enum.
set_editorTelerik.Web.UI.RadEditorSets the RadEditor instance associated to the toolbar.The method takes the following arguments: editor - The new editor instance.
set_toolJSONArraySets a new array with the JSON literals of the tools.The method takes the following arguments: value - The new tools' JSON literal.
setFocusFocuses the first tool in the toolbar.
setToolStateArray, Telerik.Web.UI.Editor.CommandStatesSets the state of the tools in the specified tools array.The method takes the following arguments: toolsArray - Array of RadEditor tools/commands (NOTE: If array is not provided, all tools will be updated with the new state). state? - The state to be used for this group of tools.

DefaultToolAdapter Client-Side Methods for attaching/detaching client-side event handlers

NameArgumentsDescription
add_toolClickFunctionAdds a handler for the toolClick DefaultToolAdapter client event.
remove_toolClickFunctionRemoves a handler for the toolClick DefaultToolAdapter client event.
Not finding the help you need?
Contact Support