Hello,
When I made the following changes, I pressed the "New Product" button on a 3rd page grid. The bottom line is not opening a new line.
(dataModel, pageModel)
Sample: Total records:39
Do I have to make a change here?
{ type: 'button', icon: 'ui-icon-plus', label: 'New Product', listener: function () {
//var rowData = { ProductID: 34, UnitPrice: 0.2 }; //empty row
var rowData={};
var rowIndx = grid.addRow( { rowData: rowData, checkEditable: true });
grid.goToPage({ rowIndx: rowIndx });
grid.editFirstCellInRow({ rowIndx: rowIndx });
}
},
dataModel:
dataModel: {
dataType: "JSON",
method: "GET",
location: "remote",
recIndx: "ID",
url: "?isl=GridGetir",
getData: function (response) {
var data=response.data;
return { curPage: response.curPage, totalRecords: response.totalRecords, data: data };
}
}
pageModel:
pageModel: {
type: "remote",
curPage: 1,
rPP: 15,
rPPOptions: [1, 5, 10, 15, 25, 50, 100, 200]
},