i’m using this function:
dhxGrid.attachEvent(“onRowSelect”, patient_selected);
and when i click a row, some things dont load, for example some grid rows (bottom rows), and the header doesnt hide, when i click the same row again, or another row, it works perfect.
I don’t know whats wrong, could someone help me with this please?
function:
function patient_selected(PatNum, index) {
dhxLayout.cells(“c”).expand();
inLayout = new dhtmlXLayoutObject(dhxLayout.cells(“c”), “2U”);
dhxLayout.cells(“c”).hideHeader();
dhxTabbar = inLayout.cells(“a”).attachTabbar();
dhxTabbar.addTab(“a1”, “Testtab”, “80px”);
PatientGrid = dhxTabbar.cells(“a1”).attachGrid();
PatientGrid.setHeader(",");
PatientGrid.setInitWidths(“20,150,200,80,*”)
PatientGrid.setColAlign(“left,right,left,left,left”)
PatientGrid.setColSorting(“int,int,str,int,str”);
PatientGrid.setColTypes(“ro,ro,ro,ro,ro”);
PatientGrid.setNoHeader(true);
PatientGrid.init();
PatientGrid.loadXML(“inc/xml/list.php?PatNum=”+ PatNum +"");
PatientGrid.enableSmartRendering(true);
}
thnx in advance!