Server Side Events

28 Aug 20171 minute to read

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

Event Name Description Arguments
OnFocusOut Triggers when the focus is moved out from the textbox
  • e.Value– Value of the NumericTextbox
  • e.EventType – Event Name
  • e.Arguments – Contain keys and value of NumericTextbox

The following steps explains you on how to define server side event for a NumericTextbox control.

In an ASPX page, add the NumericTextbox control with OnFocusOut server side event as illustrated in the following code example.

  • HTML
  • <ej:PercentageTextBox ID="numeric" Value="11" OnFocusOut="focus" runat="server"> </ej:PercentageTextBox>

    In the code behind define the action to be performed.

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