Hi there,
I’m using data processor with grid.
Dataprocessor works fine when typing the content manually in to the cell.
But it is not working for the content which is filled in to cell using Javascript function dynamically, like following…
function setContentToGridCell()
{
mygrid.forEachRow(function(id)
{
mygrid.cells(id,2).cell.innerHTML = “Test”; // updates each cell with the value ‘Test’ dynamically when this function is invoked.
})
}
Could you please help me how to get dataprocessor to work in this situation ???
Here is my grid configuration:
function load(){
mygrid = new dhtmlXGridObject(‘gridbox’);
mygrid.setImagePath(“./dhtmlx/dhtmlxGrid/codebase/imgs/”);
myDataProcessor = new dataProcessor("Test.jsp");
myDataProcessor.enableDataNames(true);
myDataProcessor.setUpdateMode("off");
myDataProcessor.setTransactionMode("GET");
myDataProcessor.init(mygrid);
myDataProcessor.enableDebug(false);
mygrid.setHeader("coumn1, column2, column3");
mygrid.attachHeader("#text_filter,#text_filter,(double click cells to comment)");
mygrid.setInitWidths("100,180,200");
mygrid.setColAlign("center,center,center");
mygrid.setColumnIds("col1,col2,col3");
mygrid.setColTypes("ro,ro,ed");
mygrid.setColSorting("str,str,str");
dhtmlxValidation.isMaxLength=function(a){
return a.length<=250;
}
mygrid.setColValidators(",,MaxLength");
mygrid.enablePaging(true, 10, 5, "pagingArea", true, "recinfoArea");
mygrid.init();
mygrid.loadXML("TestXML.jsp");
}
Thanks