Author Topic: Insert Multiple Rows using addRow function  (Read 1496 times)

megastream

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 23
    • View Profile
Insert Multiple Rows using addRow function
« 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

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6126
    • View Profile
Re: Insert Multiple Rows using addRow function
« Reply #1 on: April 07, 2021, 11:32:27 am »

megastream

  • Pro Deluxe
  • Newbie
  • *
  • Posts: 23
    • View Profile
Re: Insert Multiple Rows using addRow function
« Reply #2 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.
                        

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6126
    • View Profile
Re: Insert Multiple Rows using addRow function
« Reply #3 on: April 07, 2021, 03:04:57 pm »
Code: [Select]
$grid.pqGrid('addRow', {
  rowList:[
    { newRow: rowData1, rowIndxPage: 0 },
    { newRow: rowData2, rowIndxPage: 1 },
     ...
  ],
  checkEditable: false
});