save whole grid to server

Hi, is it possible to save/send whole grid data to server? Like this form example:

dhx.ajax().post(“data.php?action=update”, $$(‘myform’).getValues());

You can use

dhx.ajax().post(“data.php?action=update”, { data: JSON.stringify($$(‘mygrid’).serialize()) });

it will take data from the grid, as array of object, convert it to string and will send to server side.