# OnClientItemDataBound

The **OnClientItemDataBound** client-side event occurs for each item that is created during [WebService Load on Demand](https://www.telerik.com/products/aspnet-ajax/documentation/controls/combobox/data-binding/client-side/loading-items-from-webservice). This event is added in 2008 Q3 SP2 release (Telerik.Web.UI.dll v.2008.3.1314).

The event handler receives two parameters:

1. The instance of the combobox firing the event.

2. An eventArgs parameter containing the following methods:

* **get_item()** returns a RadComboBoxItem client-object

* **get_dataItem()** returns a reference to the **DataItem** (**RadComboBoxItemData** or any other serializable custom class) that the current Item is being bound to.

* **get_domEvent()** is **undefined** for this event.

The following example shows how a value is extracted from the **DataItem** and set as a Custom Attribute to Items loaded via a Web Service:

```JavaScript
	
function onItemDataBound(sender, eventArgs) 
{
	var item = eventArgs.get_item();
	var dataItem = eventArgs.get_dataItem(); 
	var phone = dataItem.Phone;
	item.get_attributes().setAttribute("phone", phone);
}
	
```

> tip Another usage of the DataItem object is in **client-side Templates** that are about to be introduced with the next version of ASP.NET AJAX. See the following blog post for more details - [RadComboBox and ASP.NET AJAX 4.0 Preview – using client-side templates and webservice load on demand](https://blogs.telerik.com/veselinvasilev/posts/09-01-15/RadComboBox-and-ASP-NET-AJAX-4-0-Preview-ndash-using-client-side-templates-and-webservice-load-on-demand.aspx).

## See Also

* [Loading Items from a Web Service](https://www.telerik.com/products/aspnet-ajax/documentation/controls/combobox/data-binding/client-side/loading-items-from-webservice)

* [RadComboBox and ASP.NET AJAX 4.0 Preview – using client-side templates and webservice load on demand](https://www.telerik.com/blogs/radcombobox-and-asp-net-ajax-4-0-preview-ndash-using-client-side-templates-and-webservice-load-on-demand)
