Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Yan on Apr 02, 2008 08:04
open dhtmlx forum
error when calling rid.selectCell(rowIndex, colIndex, false, false, true)

After I block the line of mygrid.splitAt(10), the code following works fine.

mygrid.attachEvent("onEditCell",function(stage,id,ind,value){
if(stage == 2) {
if (some_check(value))
window.setTimeout(function(){
mygrid.selectCell(mygrid.getRowIndex(id),ind,false,false,true);
},1);
}
return true;
});

Unfortunately I have to use mygrid.splitAt(10) function. I will try your way to see if it works or not.
Answer posted by Support on Apr 02, 2008 08:45
Problem in case of split mode confirmed , we will fix it in next build , for now, if cell placed to left of the split you can use


mygrid.selectCell(mygrid.getRowIndex(id),ind,false,false,false);
mygrid._fake.editCell();