1
Help for ParamQuery Grid (free version) / Re: Rpp options - only page refresh loads data, not on page load.
« on: September 07, 2014, 08:55:12 pm »
I appear to have fixed this. It was the sort Index. It works without using sortIndx or selecting a column heading. All data loads on page load now.
Code: [Select]
var dataModel = {
location: "remote",
sorting: "local",
paging: "local",
dataType: "JSON",
method: "GET",
// sortIndx: "CapID",
sortDir: "down",
rPP: 20,
rPPOptions: [1, 10, 20, 30, 40, 50, 100, 500, 1000],
curPage: 1,
getUrl: function () {
return { url: "js/vehicles.json" }
},
getData: function (dataJSON) {
return { data: dataJSON };
}
}