RadControls for ASP.NET AJAX The OnClientItemDataBound client-side event occurs for each item that is created during WebService Load on Demand. This event is added in 2008 Q3 SP2 release (Telerik.Web.UI.dll v.2008.3.1314).
The event handler receives two parameters:
- The instance of the combobox firing the event.
- An eventArgs parameter containing the following methods:
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:
CopyJavaScript
function onItemDataBound(sender, eventArgs)
{
var item = eventArgs.get_item();
var dataItem = eventArgs.get_dataItem();
var phone = dataItem.Phone;
item.get_attributes().setAttribute("phone", phone);
}
See Also