Check documentation for the latest version of dhtmlxSuite onAfterSelect DHTMLX Docs

onAfterSelect

fires when the selection of an item is finished

void onAfterSelect(string|number id);
idstring|numberid of the item

Example

myList.attachEvent("onAfterSelect", function (id){
    // your code here
});

Details

in case of multi-select, the event fires only for the items which were clicked. And it doesn't fire for the items which were selected by shift-click or any similar actions.

The event won't fire for Ctrl-click which results in item unselecting. Basically, while onBeforeSelect fires for both select and unselect actions, onAfterSelect will fire only for true selects.

Back to top