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

CommandsManager Object

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

CommandsManager Client-Side Methods

NameParametersReturn TypeDescription
canRepeatLastCommandBooleanIndicates whether the last command can be repeated.
executeObject, BooleanBooleanExecutes a command.The method takes the following arguments: command - The command to be executed. addToStack - Boolean value that indicates whether the command to be added in the undo stack.
get_commandsArrayReturns the commands available in the undo stack.
getCommandsToRedoArrayReturns the commands in the redo stack.
getCommandsToUndoArrayReturns the commands in the undo stack.
isRedoAvailableBooleanIndicates whether there are commands in the redo stack.
isUndoAvailableBooleanIndicates whether there are commands in the undo stack.
redoNumberRedo commands added in the redo stack.The method takes the following arguments: depth - The number of commands to be redo.
removeCommandAtNumberRemoves a command from the specified index in the stack.The method takes the following arguments: index - The index of the command to be removed.
repeatLastCommandRepeats the last command fired.
undoNumberUndo commands added in the undo stack.The method takes the following arguments: depth - The number of commands to be undo.
Not finding the help you need?
Contact Support