Author Topic: Add new row  (Read 336 times)

Pisga

  • Pro Enterprise
  • Newbie
  • *
  • Posts: 11
    • View Profile
Add new row
« on: October 04, 2023, 10:07:44 pm »
I try add new row to grid and refresh
gridNew.addRow(
    { newRow: {}, rowIndx: 4}
);
and get error
Uncaught TypeError: Cannot read properties of undefined (reading 'disabled')

Please explain why I get this error and how correct it. Really in the grid exists not editable columns

Also I tryed
add new row to dataModel and refresh with this function:
gridNew.pqGrid('option', 'dataModel.data', data).pqGrid('refreshDataAndView')

But get error:  gridNew.pqGrid is not a function
Possible the code changed in different versions ? My version is 6

Thank you