Categories | Question details Back To List | ||
dhtmlxGrid- MultiRowSelection Hi! 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. Regards, MB Answer posted by dhxSupport on Oct 16, 2009 02:26 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). Answer posted by MB on Oct 16, 2009 03:36 Thanks. |