setTransactionMode not work

I use the follow code to send some additional data,but it seems not work,

myDp = new dataProcessor("<?php echo $dataProcessor_url;?>");
myDp.setTransactionMode({
    headers:{
        "Accept-Language": "fr-FR"
    },
    payload:{
        "x_id":"mmmml",
        "test_data":"woshitiancai"
    },
    mode:"POST"
}, true);
myDp.setUpdateMode("cell");
myDp.enableDataNames(true);
myDp.init(myGrid);

when I check the header in with chrome develop tool,I can not see any header about “fr-FR” and not see my custom data about ‘x_id’ and ‘test_data’. I have tried many times but could not find the solution.

PS:I did not used connector and I used dataStore to be the source of data.

Be sure that you are using the latest version of DHTMLX, this API is relative new. Old versions of dataprocessor will not recognize headers and payload parameters of setTransactionMode command.