Edit this page

OnItemDeselecting

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

Fired by RadTreeList
Arguments get_item() - the TreeListDataItem object which is being deselected
get_cancel() - bool
set_cancel(bool)
Can be canceled Yes

Example

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

See Also