Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Sirish on May 29, 2008 03:10
open dhtmlx forum
Multiple Changes not updating

Hi all

my grid is working fine, but if i change values in multiple rows only the first change is updating the remaining are not updated. please help me .
Answer posted by Support on May 29, 2008 03:37
Are you using dataprocessor library ?
By default dataprocessor sends data about updated rows one by one. Data about each row sent as separate request.
You can enable "send-all-at-once" behavior by
    grid.setTransactionMode("GET",true)

If problems still occurs for you - please provide more info about used modes.
Answer posted by Sirish on May 29, 2008 03:57
    mygrid.loadXML("get1.php");
        myDataProcessor = new dataProcessor("update1.php");
        myDataProcessor.enableDebug(true);
        myDataProcessor.enableDataNames(true);
        myDataProcessor.setUpdateMode("off");//available values: cell (default), row, off
        myDataProcessor.defineAction("error",myErrorHandler);
        myDataProcessor.setTransactionMode("GET");

this is what i am doing. its working with 1 row update, but getting sql error working with multiple rows update. please help
Answer posted by Support on May 29, 2008 09:08
If you are using "send-all-at-once" behavior - server side code need to be written in different way.

http://www.dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Dataprocesor_usage.html#grid_art_dataprocessor
Attachments (1)