I followed the example in
http://paramquery.com/pro/demos/editing_instantEverything works fine, but when I try to add an Item and is needed a new page the grid don't go to the page, in a previous post
http://paramquery.com/forum/index.php?topic=1517.msg6597#msg6597 you helped me to change the remote data paging, then in my toolbar I have:
{
type: 'button',
icon: 'ui-icon-plus',
label: 'Nuevo Tema',
listener: function () {
//append empty row at the end.
var rowData = { topicname: 'nuevotema', topictext: 'Nuevo Tema' }; //empty row
var rowIndx = grid.addRow({ rowData: rowData });
grid.goToPage({ rowIndx: rowIndx });
grid.editFirstCellInRow({ rowIndx: rowIndx });
}
},
and in my dataModel,
beforeSend: function(a, b) {
b.url = b.url.replace("pq_curpage", "page");
},
Then I supose that the problem is with the grid.goToPage. How can I make the grid to take the page ?