Skip to main content

RibbonBarItemTextBox

Namespace: Wisej.Web.Ext.RibbonBar

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

Represents a textbox in a RibbonBarGroup.

public class RibbonBarItemTextBox : RibbonBarItem

The Text and the image are displayed as a label to the left of the edit field; the content of the field is in the Value property. The user can move between the text boxes and combo boxes in the same RibbonBarGroup using the Tab and Shift+Tab keys.

Constructors​

Instance member RibbonBarItemTextBox()​

Initializes a new instance of RibbonBarItemTextBox.

Properties​

Instance member FieldWidth​

Int32: Returns or sets the width of the TextBox field inside the RibbonBarItemTextBox. (Default: 120)

Value: The width of the edit field in pixels, not including the label. The default is 120.

Instance member Value​

String: Returns or sets the value in the editable field of the RibbonBarItemTextBox. (Default: null)

Value: The text in the edit field. The default is null.

The value is updated on the server when the user commits the change in the field. Every change, including assigning the value in code, fires the ValueChanged event on the item and the ItemValueChanged event on the RibbonBar.

Example:

Searching the text typed in a ribbon text box:

private void ribbonBar1_ItemValueChanged(object sender, RibbonBarItemEventArgs e)
{
if (e.Item == this.textBoxSearch)
Search(this.textBoxSearch.Value);
}

Methods​

Protected member OnValueChanged(e)​

Fires the ValueChanged 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.

Protected member OnWebUpdate(state)​

Updates the client component using the state information.

ParameterTypeDescription
stateObjectDynamic state object.

Events​

Instance member ValueChanged​

EventHandler Fired when the Value property has changed.

Implements​