I got ‘this.pgn_templateA’ is null or not an object when I tried to delete a row in dhtmlxGrid. Can someone please tell me why and how to fix it? It did delete the row, but the error stopped the script.

I got the error no matter I did it this way,

var selId = gridUser.getSelectedId();




I got the same error when I tried to add a row.

Thanks so much!

Unfortunately we cannot reproduce this issue locally. Please provide us complete example where we can reproduce it (you can send such example directly to the support@dhtmlx.com)