Server Side Events

27 Apr 20181 minute to read

The following are the server side events available in the ComboBox control.

Event Event Description Event Description
OnValueSelect Occurs when ComboBox Active list changes. Event Argument contains the following parameters,
  • e.IsChecked – Status of ComboBox Checkbox.
  • e.Text – Text of the ComboBox Selected list.
  • e.Value – Value of the ComboBox Selected list.
  • e.SelectedText – Selected Node Text of the ComboBox Selected list.
  • e.ItemId – Index Value of the ComboBox Selected list.
  • e.EventType – Event Name.Arguments – Contain keys and values for IsChecked, Text, Value, SelectedText and ItemId.

In the ASPX page, add the ComboBox control to configure the ComboBox events.

  • HTML
  • <ej:ComboBox ID="selectColor" runat="server" Width="100%" DataTextField="text" OnValueSelect="selectColor_ValueSelect" Placeholder="Choose a color"></ej:ComboBox>

    The code Define ComboBox ValueSelect server side event in behind.

  • C#
  • protected void selectColor_ValueSelect(object sender, Syncfusion.JavaScript.Web.ComboBoxEventArgs e)
        {
            
        }