How can I send the igGrid datasource to the Controller action MVC 3?
Thanks
Hi,
is there any reason you would like to post the whole data source to the server? If you would like to only send the changed data, you can use the transaction api of the data source / grid.
Otherwise, if you would like to send the whole datasource, here is one way to do this:
var dataSource = $("#grid").data("igGrid").dataSource.data();
$.ajax({ type: 'POST', url: <your controller URL>, data: dataSource, success: successCallback, dataType: "json" });
Hope it helps. Thanks,
Angel
I tried your suggestion, but when the message gets to the server is said undefined. Do you know why the message is undefined?
var dataSource = $('#grid1').data('igGrid').dataSource.data();
$.ajax({ type:
});