Custom combo not showing value on first click.

I have two DHTMLX grids on my page. mygrid on top and mygridEMod in the bottom
In both the grids I have the 3rd column with the type co via XML.

initialization for grid1:

mygrid = new dhtmlXGridObject(‘mygrid_container1’);
mygrid.setImagePath("…/U-FILEVIEW/"+applicationName+"_DHTMLXGrid/$FILE/");
mygrid.setSkin(“modern”);
mygrid.enableMultiselect(true);
mygrid.setNumberFormat(“0,000”,7);
mygrid.setDateFormat("%yy-%m-%d");
mygrid.enableEditTabOnly(true);
mygrid.enableEditEvents(false,true,false);
mygrid.attachEvent(“onEditCell”,SMAReloCellEditHandler);
mygrid.attachEvent(“onCheck”, ReloSMAOnCheck);
var postdata=applicationName+"~"+document.getElementsByName(“DocumentId”)[0].value+"~"+“Relocation”+"~"+document.getElementsByName(“S_ActiveUserRole”)[0].value;
jQuery.post("…/S_WSESERVICE01?OpenAgent&WSEServiceID="+applicationName+"_SMABlankGrid_Tsk",postdata ,function(data){onReadyStateChange(data,“Relocation”,mygrid); },“text”);

initialization for grid 2:

mygridEMod = new dhtmlXGridObject(‘mygrid_container2’);
mygridEMod.setImagePath("…/U-FILEVIEW/"+applicationName+"_DHTMLXGrid/$FILE/");
mygridEMod.setSkin(“modern”);
mygridEMod.enableMultiselect(true);
mygridEMod.setNumberFormat(“0,000”,7);
mygridEMod.setDateFormat("%yy-%m-%d");
mygridEMod.enableEditTabOnly(true);
mygridEMod.enableEditEvents(false,true,false);
mygridEMod.attachEvent(“onEditCell”,SMAEmodCellEditHandler);
var postdata=applicationName+"~"+document.getElementsByName(“DocumentId”)[0].value+"~"+“EMod”+"~"+document.getElementsByName(“S_ActiveUserRole”)[0].value;
jQuery.post("…/S_WSESERVICE01?OpenAgent&WSEServiceID="+applicationName+"_SMAEmodBlankGrid_Tsk",postdata ,function(data){onReadyStateChange(data,“EMod”,mygridEMod); },“text”);

I load the values in the custom combo box using values from another column in the onEditcell handler using the following code:

For grid 1:
if((cellInd==Rind.model&&stage==0))
{
if(mygrid.cellById(rowId,Rind.hiddnmodel).getValue()!="")
{
var cmb=mygrid.getCustomCombo(rowId,Rind.model);
var hiddenModelstemp=mygrid.cellById(rowId,Rind.hiddnmodel).getValue().split("***")[0];
var hiddenModels=hiddenModelstemp.split("|");
var mac1=mygrid.cellById(rowId,Rind.mactype).getValue();
for(var i=0;i<hiddenModels.length;i++)
{
cmb.put(hiddenModels[i],hiddenModels[i]);
cmb.save();
cmb.restore();
}
return true;
}
else return true;
}

For grid 2:

  if(cellInd==Eind.feature && stage==0)
  { 
   if(mygridEMod.cellById(rowId,Eind.hiddnftr).getValue()!="")
   {
     var hiddenFeaturese=mygridEMod.cellById(rowId,Eind.hiddnftr).getValue().split("|");
     var cmbe=mygridEMod.getCustomCombo(rowId,Eind.feature);
     for(var i=0;i<hiddenFeaturese.length;i++)
  {
     cmbe.put(hiddenFeaturese[i],hiddenFeaturese[i]);
     cmbe.save();
     cmbe.restore();
      }
      return true;
   }
   else 
      {return true;}
 }

 The code snippet for the mygrid works fine.
 But, mygridEMod does not work on the first double click, however if i alert mygridEmod.getKeys() i can see all the keys I place in the customCombo.
 On second double click on the cell, I am able to use the values.

 I am using dhtmlxSuite_v25_pro_90904 for the application.