Server Side Events

The server side events present in the ColorPicker control are as follows.

Event Name

Description

Arguments

OnSelect triggers on selecting any color e.Value– Value of the Colorpicker.EventType – Event Name.Arguments – Contain keys and value of Colorpicker

In an ASPX page, add the ColorPicker control with the OnSelect server side event as shown in the following code example.

  • html
  • <ej:ColorPicker runat="server" ID="colorpicker" OnSelect="onSelect" Value="#278787"> </ej:ColorPicker>

    In the code behind define the action to be performed.

  • c#
  • protected void onSelect(object Sender, EventArgs e)
    
    {
    
        Response.Write("Server side event has been triggered");
    
    }