dhtmlxGrid- MultiRowSelection


I have enabled enableMultiselect in my grid example and i want to enable the only one button- delete out of 2 buttons (save, delete). Once the user selects more than one row, I want to deactivate the other button and enable only one buttion- delete.

Is there an available funtion (e.g o multiselection)which I can use to achieve this task. Thanks.



You can use “onRowSelect” event to catch moment of time when user select new row.
grid.attachEvent(“onRowSelect”, function(id,ind){});
To find out if more than one row is selected you can use getSelectedRowId() method. In case of multi select mode this method returns list of ids of selected rows with default delimiter (comma).