Skip to main content

RibbonBarItemCheckBox

Namespace: Wisej.Web.Ext.RibbonBar

Assembly: Wisej.Web.Ext.RibbonBar (4.1.0.0)

Represents a checkbox in a RibbonBarGroup.

public class RibbonBarItemCheckBox : RibbonBarItem

The check state is toggled on the client when the user clicks the item; the new value is then sent to the server and assigned to Checked.

Constructors​

Instance member RibbonBarItemCheckBox()​

Initializes a new instance of RibbonBarItemCheckBox.

Properties​

Instance member Checked​

Boolean: Returns or sets whether the RibbonBarItemCheckBox is in the checked state. (Default: False)

Value: true if the RibbonBarItemCheckBox is in the checked state; otherwise, false. The default is false.

Changing the value fires the CheckedChanged event. When the user clicks the checkbox, the value is updated first, then the Click and ItemClick events are fired.

Example:

Showing or hiding a panel when the user toggles the check box:

private void checkBoxRuler_CheckedChanged(object sender, EventArgs e)
{
this.panelRuler.Visible = this.checkBoxRuler.Checked;
}

Methods​

Protected member OnCheckedChanged(e)​

Fires the CheckedChanged event.

ParameterTypeDescription
eEventArgsA EventArgs that contains the event data.

Protected member OnWebEvent(e)​

Processes the event from the client.

ParameterTypeDescription
eWisejEventArgsEvent arguments.

Protected member OnWebRender(config)​

Renders the client component.

ParameterTypeDescription
configObjectDynamic configuration object.

Events​

Instance member CheckedChanged​

EventHandler Fired when the value of the Checked property changes.

Implements​