Hi,
I am loading 2 grids from an xml file.Based on “row Select Event” of grid1 ,I am loading my 2nd Grid and executing edit cell event on grid2
function doOnLoad()
{
dhxGrid1.loadXML();
rowSelId = dhxGrid1.attachEvent(“onRowSelect”, doOnRowSelected);
}
function doOnRowSelected(id,cellInd)
{
…//Code
dhxGrid2.loadXML();
dhxGrid2.attachEvent(“onEditCell”, doOnCellEdit)
}
function doOnCellEdit(stage,rowId,cellIndex,nValue,oValue)
{
dhxGrid1.detachEvent(rowSelId);
if(cellIndex==13)
{
if(stage==2)
{
//condn…
code…
}
}
return true;
}
I want to execute “editCellEvent” of Grid2 every time on “rowSelectEvent” of Grid1. But it is executed once first time and twice 2nd time.So i am trying to detach the “rowSelectevent” of Grid1 in “OnEditCell” event of grid2. But i want to re- attach the rowselect event again after returning true on"editcellEvent". but it’s not woking properly.
So kindly advise using the above sample code as soon as possible