New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

OnClientItemClicked

The OnClientItemClicked event occurs when an item of the RadTagCloud control is clicked, immediately after the OnClientItemClicking event.

The event handler receives two parameters:

  1. Sender–the TagCould object that fired the event.

  2. Event arguments–event arguments object of type Telerik.Web.UI.RadTagCloudEventArgs, that exposes the following properties and methods:

NameParametersReturn TypeDescription
get_itemRadTagCloudItemReturns the client-side object of the clicked item.

Example 1: Shows how you can use the OnClientItemClicked event to alert the text of the clicked item.

ASP.NET
<telerik:RadTagCloud RenderMode="Lightweight" runat="server" ID="RadTagCloud1" OnClientItemClicked="OnClientItemClicked">
	<Items>
		<telerik:RadTagCloudItem Text="Item 1" />
		<telerik:RadTagCloudItem Text="Item 2" />s
	</Items>
</telerik:RadTagCloud>

<script type="text/javascript">
	function OnClientItemClicked(sender, args) {
		var item = args.get_item();
		var text = item.get_text();

		alert("Item with text \"" + text + "\" was clicked!");
	}
</script>

See Also

In this article
See Also
Not finding the help you need?
Contact Support