New to Telerik UI for ASP.NET AJAXStart a free 30-day trial

OnItemDeselecting

This event is fired when a TreeListDataItem is about to be deselected on the client. This event can be canceled.

Fired byRadTreeList
Argumentsget_item() - the TreeListDataItem object which is being deselected
get_cancel() - bool
set_cancel(bool)
Can be canceledYes

Example

JavaScript
function ItemDeselecting(sender, eventArgs) {
    if (eventArgs.get_item().get_displayIndex() == 0) {
        eventArgs.set_cancel(true);
    }
}

See Also

In this article
ExampleSee Also
Not finding the help you need?
Contact Support