Search code examples
smartclient

ListGrid.updateData() for multiple records


Is there an smartClient solution to update multiple?

saveAllEdits didn't send any update request to the server, updateData works on a single Record object, if I try to send an array it ends up at the server as

0:{
    name:"example",
    permission:"high"
},
1:{
    name:"test",
    permission:"low"
},
2:{
    name:"inquery",
    permisson:"low"
}

I need a solution that will send the request as

records:[
    {
        name:"example",
        permission:"high"
    },
    {
        name:"test",
        permission:"low"
    },
    {
        name:"inquery",
        permisson:"low"
    }
]

Solution

  • use queueing:

    RPCManager.startQueue();
    grid.updateData(record1);
    grid.updateData(record2);
    RPCManager.sendQueue();