New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
OnItemCreated
This event is fired when each of the TreeListDataItem client components is created.
The RadTreeList client TreeListDataItem objects will not be created until they are requested, for example by calling TreeListInstance.get_dataItems(). Until then, the OnItemCreated client event of the control will not fire.
Fired by | RadTreeList |
Arguments | get_item() - the created TreeListDataItem object |
Can be canceled | No |
Example
JavaScript
function ItemCreated(sender, eventArgs) {
alert('Created item with client key value: ' + eventArgs.get_item().get_dataKeyValue('LastName'));
}