Server Side Events

The following list of Individual server side event is available in the TagCloud control.

Event Description Arguments
OnSelect Occurs when selecting the item in TagCloud Event Argument contains the following parameters:

e.EventType - Event Name.

e.Value - It holds current selected Item value.

e.URL - It holds ULR value of the selected Item.

e.Arguments - Contains keys and values for event args.

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

  • html
  • <ej:TagCloud ID="tagcloud" runat="server" OnClick="tagcloud_Click"
    
       DataTextField="CustomerID" Query="ej.Query().from('Orders').take(10)" DataFrequencyField="EmployeeID">
    
    </ej:TagCloud>
  • c#
  • protected void Page_Load(object sender, EventArgs e)
    
    {
    	this.tagcloud.DataSource = "http://mvc.syncfusion.com/Services/Northwnd.svc/";
    
    }
    
    protected void tagcloud_Click(object sender, Syncfusion.JavaScript.Web.TagCloudEventArgs e)
    
    {
    
    	//e.EventType – Event Name
    
    	//e.Arguments – Contains keys and values for Event and Args.
    
    	//e.Value – It holds current selected Item value.
    
    	//e. URL – It holds ULR value of selected Item.
    
    }