Hi,
I have problem with connection grid to dataprocessor. This is my grid:
grid = new dhtmlXGridObject(“gridbox”);
grid.setImagePath(“/codebase/imgs/”);
grid.setHeader(“aaa,bbb,ccc,ddd,eee,fff,ggg,hhh”);
grid.setInitWidths(“70,80,*,150,150,100,100”);
grid.setColAlign(“center,center,left,left,left,left,left”);
grid.setColTypes(“ro,ch,edtxt,ro,ro,ro,ro”);
grid.setColSorting(“int,int,str,str,str,date,date”);
grid.setSkin(“dhx_skyblue”);
grid.init();
grid.loadXML(“getxml.php”);
Everything works fine. Grid is ok. But now I need save the changes.
So I added:
dp = new dataProcessor(“gridedit.php”);
dp.init(grid);
…but nothing happens when user makes changes in grid
I tried this:
function not_empty(value) {return value != “”;}
function greater_0(value) {return value > 0;}
dp = new dataProcessor(“gridedit.php”);
dp.setVerificator(2, not_empty);
dp.init(grid);
I think, in this case, the row in column 3 (dp.setVerificator(2, not_empty);) should be underlined if the value is empty. Regardless of the gridedit.php file.
This works in the sample here:
dhtmlx.com/docs/products/dhtmlxG … ation.html
… but not in my code
Please, could you help me with this my problem?? Thank you in advance.
mijo