Ok, thank you parmavir. but now there is another question: how do I load the grid with parameters saved in the qeurystring?
I tried:
obj.dataModel = {
beforeSend: function () {
$(".loadingDiv").show();
},
complete: function () {
$(".loadingDiv").hide();
},
error: function () {
this.rollback();
},
data: data_grid_anagrafica,
location: "local",
sorting: "local",
space: true,
multiKey: null
};
var sortingDir = *querystring direction variable*;
var sotringData = *querysring dataIndx variable*
obj.dataModel.sortIndx = sortingDir;
obj.dataModel.sortDir = sotringData;
obj.dataModel.data = data_grid;
$grid = $("div#grid").pqGrid(obj);
but doesn't work for me. Any Idea? thanks.