Class CustomCommandButton

CustomCommandButton class

Represents a custom command button in the tab bar of the GridWeb control.

public class CustomCommandButton : Control, ISerializable

Constructors

NameDescription
CustomCommandButton()Default constructor.

Properties

NameDescription
ClientClickEvent { get; set; }Gets or sets the click event handler at client side.
Command { get; set; }Gets or sets the command name.
CommandType { get; set; }Gets or sets the rendering type of the command. The type can be command button or context menu item.
DiscardInput { get; set; }Indicates whether to discard user input at client browser when user click this button. Could be used as an “undo” action.
ImageUrl { get; set; }Gets or sets the command button’s image url. If sets to null or empty string, the button will only display it’s text.
Text { get; set; }Gets or sets the alternative text of the command button.
ToolTip { get; set; }Gets or sets the tooltip of the command button.
Width { get; set; }Width of the button.

Methods

NameDescription
GetObjectData(SerializationInfo, StreamingContext)Internal used only.

Examples

[C#]
GridWebBean GridWeb1=ExtPage.getInstance().getBean();
CustomCommandButton button = new CustomCommandButton();
button.Command = "MyCommand";
button.ImageUrl = "images/button1.gif";
GridWeb1.CustomCommandButtons.Add(button);
[VB]
Dim button As CustomCommandButton =  New CustomCommandButton()
button.Command = "MyCommand"
button.ImageUrl = "images/button1.gif"
GridWeb1.CustomCommandButtons.Add(button)

See Also