Hi Peter,
Thanks for the firsts answer
For the second one, my code is
[code]
$(document).ready(function () {
var url = "lst.ajax.php";
var GridModel = function () {
this.items = ko.observableArray();
var me = this;
$.ajax({
datatype: ‘json’,
url: "lst.ajax.php"
}).done(function (data) {
var jsonData = $.parseJSON(data);
me.items(jsonData);
});
}
var model = new GridModel();
var eta_source =
{ datatype: "observablearray",
datafields: [{name: ‘NAME’}, {name: ‘ADDRESS’}],
id: ‘ID’,
localdata: model.items,
pager: function (pagenum, pagesize, oldpagenum) {}
};
var eta_dataAdapter = new $.jqx.dataAdapter(eta_source);
$("#eta_jqxgrid").jqxGrid(
{ width: ‘100%’, height: 560,
source: eta_dataAdapter,
sortable: true,
pageable: true,
pagesize: 20,
autoheight: false,
theme: theme,
columns: [
{text: ‘<b>Name</b>’, datafield: ‘NAME’},
{text: ‘<b>Address</b>’, datafield: ‘ADDRESS’, width:200}
]
});
[/code]
It is the same code as yours.