# OnClientTemplateDataBound

## OnClientTemplateDataBound

The **OnClientTemplateDataBound** client-side event of the **RadTreeView** is fired after the client template is bound and the binding expression are evaluated.

The event handler receives two parameters:

1. The instance of the **TreeView** firing the event.

2. An **eventArgs** parameter containing the following methods:

* **get_dataItem()** returns the **dataItem** object that the current item is being bound to.

* **get_html()** gets the rendered template HTML.

* **set_html()** sets the rendered template HTML.

* **get_template()** – returns the template function that’s used to bind the **dataItem** to the template text.

## See Also

* [Client Templates Overview](https://www.telerik.com/products/aspnet-ajax/documentation/controls/treeview/templates/client-templates)

* [Online Demo](https://demos.telerik.com/aspnet-ajax/treeview/examples/functionality/clienttemplates/defaultcs.aspx)
