ParamQuery grid support forum

General Category => Help for ParamQuery Grid (free version) => Topic started by: Pisga on October 04, 2023, 10:07:44 pm

Title: Add new row
Post by: Pisga 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