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

TagCloud Object

You can find in this help article information how to get the RadTagCloud client-side object and use its properties and methods.

Getting the RadTagCloud client-side object

RadTagCloud creates a client-side object with the ClientID of the tagCloud. You can obtain the reference using the following JavaScript code:

JavaScript
var tagCloud = $find("<%= RadTagCloud1.ClientID %>");

Methods

NameParametersReturn TypeDescription
addTagCloudItemRadTagCloudItemCreates, renders a new TagCloudItem item and inserts it in the get_items Array.
dataBindData binds the data of the RadTagCloud.
get_appendClientDataBoundItemsBooleanGets whether data bound items will be appended to the TagCloud.
get_clientDataSourceTelerik.Web.UI.RadClientDataSourceGets the RadClientDataSource that is associated with the TagCloud.
get_clientDataSourceIDStringGets the ID of the RadClientDataSource that is associated with the TagCloud.
get_containerElementObjectReturns the UL DOM element that wraps all tagCloud's items.
get_dataSourceObjectGets the data source of the TagCloud.
get_distributionTelerik.Web.UI.TagCloudDistributionReturns a value of type Telerik.Web.UI.TagCloudDistribution that indicates how the font-size is distributed among the different items.
get_enabledBooleanReturns a value, indicating whether the tagCloud control is enabled.
get_heightNumberReturns the height of the tagCloud control.
get_itemsArrayReturns an array of the tagCloud's items. The items are of type Telerik.Web.UI.RadTagCloudItem.
get_sortingTelerik.Web.UI.TagCloudSortingReturns a value of type Telerik.Web.UI.TagCloudSorting that indicates how the items are sorted.
get_targetStringReturns the target window or frame to display the new content when the TagCloud item is clicked.
get_widthNumberReturns the width of the tagCloud control.
removeTagCloudItemTelerik.Web.UI.RadTagCloudItem, BoolRemoves a RadTagCloudItem item. The second boolean parameter instructs whether the TagCould to be repainted after removing the item.
repaintRedraws the TagCloud control.
requestItemsStringInitiates RadTagCloudItem items request with a specified argument, causing the request to be sent to a WebService. All current items will be removed,before the new ones are populated.
set_appendClientDataBoundItemsBooleanSets whether data bound items will be appended to the TagCloud.
set_clientDataSourceIDStringSets the ID of the RadClientDataSource that is associated with the TagCloud.
set_dataSourceArraySets a custom data source for the RadTagCloud.
set_enabledBoolSets a bool value indicating whether the tagCloud is enabled.
set_targetStringSets the target window or frame to display the new content when the TagCloud item is clicked.

Events

NameParametersReturn TypeDescription
add_itemClickedFunctionAdds a handler for the itemClicked even of the tagCloud control.
add_itemClickingFunctionAdds a handler for the itemClicking event of the tagCloud control.
add_loadFunctionAdds a handler to the load event of the tagCloud control.
remove_itemClickedFunctionRemoves the handler from the handlers collection that is associated with the itemClicked event.
remove_itemClickingFunctionRemoves the handler from the handlers collection that is associated with the itemClicking event.

See Also