I’m trying to get the dataprocessor to work but seem to be struggling, I’m surprised as it appears that all you need are two lines added to the initialisation of the gird!
So I’ve got the code below, please could someone have a look and see if I’m missing anything - your help will definietly be appreciated, I’ve been pulling my hair out with this!!
function doInitGrid(){
mygrid1 = new dhtmlXGridObject('mygrid1_container');
mygrid1.setImagePath("/test/codebase/imgs/");
mygrid1.setHeader("Active,ID,Description,Redirection Path,Included Paths");
mygrid1.setInitWidths("70,150,230,300,300");
mygrid1.setColTypes("ch,ed,ed,ed,ed");
mygrid1.setSkin("light");
var url = "/test/XLST-test/downtime-out.xml";
mygrid1.load(url, "xml");
mygrid1.enableMultiline(true);
mygrid1.enableAutoWidth(true);
mygrid1.enableAutoHeight(true);
mygrid1.setSizes();
mygrid1.enableSmartRendering(true);
mygrid1.init();
//============================================================================================;
myDataProcessor = new dataProcessor("/test/XLST-test/transform.asp");
myDataProcessor.init(mygrid1);
//myDataProcessor.defineAction("error_of_datastore",handle_error_of_datastore);
myDataProcessor.attachEvent("onAfterUpdate", function() {
log("onAfterUpdate", arguments);
return true;
});
myDataProcessor.attachEvent("onRowMark", function() {
log("onRowMark", arguments);
return true;
});
myDataProcessor.attachEvent("onBeforeUpdate", function() {
log("onBeforeUpdate", arguments);
return true;
});
myDataProcessor.attachEvent("onValidatationError", function() {
log("onValidatationError", arguments);
return true;
});
myDataProcessor.attachEvent("onAfterUpdateFinish", function() {
log("onAfterUpdateFinish", arguments);
return true;
});
myDataProcessor.attachEvent("onFullSync", function() {
log("onFullSync", arguments);
return true;
})
}