ParamQuery grid support forum
General Category => Help for ParamQuery Pro => Topic started by: omerix on February 23, 2019, 02:25:40 am
-
Hello,
I'm using "Batch editing".
https://paramquery.com/pro/demos/editing_batch
I'm using "Remote Paging".
I'm entering multi-line data by copying from "Excel".
For This; The new line with the ".AddRow" function. It has to be at the bottom.
At the end of page 3 or at the end of page 1 it is not a problem for me to have a new line.
Note: If the records are single pages, no problem.
I tried these;
Go to the last page without opening new row in "addRow" function.
grid.goToPage({page:3});
var rowIndx = grid.addRow( { rowIndxPage: 40,rowData: rowData, checkEditable: true });
grid.goToPage({ rowIndx: rowIndx});
grid.editFirstCellInRow({ rowIndx: rowIndx });
I tried to show all the records on 1 page without opening a new row.
Result successful
grid.option('pageModel.rPP',999999)
//grid.refreshDataAndView();
var rowIndx = grid.addRow({rowData: rowData, checkEditable: true });
grid.goToPage({ rowIndx: rowIndx});
grid.editFirstCellInRow({ rowIndx: rowIndx });
But I want to ask if I can do it in any other way.
Thanks
-
Please follow this example for batch editing with remote paging.
https://paramquery.com/pro/demos/editing
-
Hello,
This way, I cannot copy + paste from excel.
I started using the code below. I do "dataRefresh" after saving.
There's no problem right now. I hope there's no mistake.
var pm=grid.option( "pageModel" );
grid.option( "pageModel", { type: 'local',curPage: 1,rPP:pm.rPP,rPPOptions:pm.rPPOptions} );
var rowIndx = grid.addRow( { rowData: rowData, checkEditable: true });
grid.goToPage({ rowIndx: rowIndx });
grid.editFirstCellInRow({ rowIndx: rowIndx })
Please follow this example for batch editing with remote paging.
https://paramquery.com/pro/demos/editing