Using one of your examples on Server side paging I am not getting the paging events. When you press the Previous or Next buttons nothing is being passed to the server. I would expect to get a new pagenum passed to the server.
$(document).ready(function() {
// prepare the data
var theme = ‘classic’;
var source = {
datatype: “json”,
datafields: [
{name: ‘CompanyName’},
{name: ‘ContactName’},
{name: ‘ContactTitle’},
{name: ‘Address’},
{name: ‘City’},
{name: ‘Country’}
],
url: ‘data.php’,
root: ‘Rows’,
beforeprocessing: function(data) {
source.totalrecords = data[0].TotalRows;
}
};
var dataadapter = new $.jqx.dataAdapter(source);
// initialize jqxGrid
$(“#jqxgrid”).jqxGrid({
width: 600,
source: dataadapter,
theme: theme,
autoheight: true,
pageable: true,
virtualmode: true,
rendergridrows: function() {
return dataadapter.records;
},
columns: [
{text: ‘Company Name’, datafield: ‘CompanyName’, width: 250},
{text: ‘Contact Name’, datafield: ‘ContactName’, width: 200},
{text: ‘Contact Title’, datafield: ‘ContactTitle’, width: 200},
{text: ‘Address’, datafield: ‘Address’, width: 180},
{text: ‘City’, datafield: ‘City’, width: 100},
{text: ‘Country’, datafield: ‘Country’, width: 140}
]
});
});