ParamQuery grid support forum

General Category => Help for ParamQuery Pro => Topic started by: megastream on April 07, 2021, 11:16:54 am

Title: Insert Multiple Rows using addRow function
Post by: megastream on April 07, 2021, 11:16:54 am
Hello,

I want to add multiple rows on single click of addnew row button so please suggest me an example of this

Thanks
Title: Re: Insert Multiple Rows using addRow function
Post by: paramvir on April 07, 2021, 11:32:27 am
There are code examples of adding multiple rows in the API:

https://paramquery.com/pro/api#method-addNodes

https://paramquery.com/pro/api#method-addRow
Title: Re: Insert Multiple Rows using addRow function
Post by: megastream on April 07, 2021, 12:22:09 pm
Hello,

Thanks for your response

How can i add multiple rows concept in below snippet:

var rowIndx = $grid.pqGrid('addRow', { rowIndxPage: 0, rowData: rowData, checkEditable: false });

Please suggest me.
                        
Title: Re: Insert Multiple Rows using addRow function
Post by: paramvir on April 07, 2021, 03:04:57 pm
Code: [Select]
$grid.pqGrid('addRow', {
  rowList:[
    { newRow: rowData1, rowIndxPage: 0 },
    { newRow: rowData2, rowIndxPage: 1 },
     ...
  ],
  checkEditable: false
});