onRowSelect

Hello Team,

onRowSelect event is not firing in dhxv3 suite. is there any fix for this, please let me know.

Regards,
Dumpa

Can you provide a snippet of code which is not working for you ?
Code works correctly locally and in online samples.

Below is the code snippet. I am using v3 suite.

layout.cells("a").setText("");
layout.cells("a").hideHeader();
dsGrid = layout.cells("a").attachGrid();
dsGrid.setImagePath("/../../dhtmlx/dhtmlxGrid/codebase/imgs/");
dsGrid.setHeader("Selection");
dsGrid.attachHeader("#text_search");
dsGrid.setInitWidths("540");
    dsGrid.setColTypes("tree") ;
dsGrid.setColAlign("left");
dsGrid.enableTreeCellEdit(false);
dsGrid.enableMultiline(false);
dsGrid.enableSmartRendering(true);
dsGrid.enableSmartXMLParsing(true);
dsGrid.enableMultiselect(false);
dsGrid.setFiltrationLevel(-1);
dsGrid.enableRowsHover(false);
dsGrid.setSkin("xp");
dsGrid.init();

dsGrid.attachEvent("onXLS",function() { layout.progressOn(); });
dsGrid.loadXML("/portal/assQ.....");
dsGrid.attachEvent("onXLE",function() { layout.progressOff(); });
dsGrid.attachEvent("onRowSelect", step1RowSelected);
function step1RowSelected(id) {
		alert("Inside the onRowSelect")
	}

Please try to change order of commands as

function step1RowSelected(id) { alert("Inside the onRowSelect") } dsGrid.attachEvent("onRowSelect", step1RowSelected);

Also, if issue still occurs - try to update used js file with the attached one
dhtmlxgrid.zip (43.7 KB)