Server side events

2 Sep 20161 minute to read

Event Name Description Parameters
OnToolbarItemClick Event triggered when the RTE tool bar item is clicked (Object Sender, RTEEventArgs e)Values passed in argument are as below,

CommandName – returns the corresponding toolbar item command

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

In an ASPX page, define the RTE control and add server side event

  • html
  • <ej:RTE ID="RTESample" Width="650" Height="440" runat="server" OnToolbarItemClick="RTESample_ToolbarItemClick"></ej:RTE>

    In the code behind define the action to be performed on clicking the toolbar item in RTE

  • c#
  • protected void RTESample_ToolbarItemClick(object sender, Syncfusion.JavaScript.Web.RTEEventArgs e)
    
    {    
        // e.CommandName – returns the currently clicked ToolBar item operation command
    }