RadControls for ASP.NET AJAX This event is fired when each of the TreeListDataItem client components is created.
Note |
|---|
Note that 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 newly created TreeListDataItem object
|
Can be canceled | No |
Example:
CopyJavaScript
function ItemCreated(sender, eventArgs) {
alert('Created item with client key value: ' + eventArgs.get_item().get_dataKeyValue('LastName'));
}