and I need to be able type something into input text field. Right now I am able to display input text fiels within cell but unable to type in that field anything.
The code is:
myGrid=new dhtmlXGridObject(“divMyGrid”);
myGrid.setColTypes(“ed,ed,ed,ed…
…
myGrid.enableEditEvents(true,true,true);
var onRowSelectEvent = myGrid.attachEvent(“onRowSelect”,function(rowId,cellInd){
var cellValue=myGrid.cells(rowId,0).getValue();
if (cellInd==0 ){
myGrid.cells(rowId,0).setValue(”");
myGrid.cells(rowId,0).setValue("
$(‘blah’).innerHTML="";
$(‘searchField’).style.backgroundImage=“url(‘includes/img/icons/magnifier.gif’)”;
$(‘searchField’).style.backgroundRepeat=“no-repeat”;
$(‘searchField’).style.backgroundPosition=“right”;
}
else {
myGrid.cells(rowId,0).setValue($(‘searchProject1’).value);
}
return true;
});