Server Side Events
6 Sep 20171 minute to read
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.
<ej:ColorPicker runat="server" ID="colorpicker" OnSelect="onSelect" Value="#278787"> </ej:ColorPicker>
In the code behind define the action to be performed.
protected void onSelect(object Sender, EventArgs e)
{
Response.Write("Server side event has been triggered");
}