I am using this command for adding a new row. It pops up the window with fields that needs to be added.
jQuery("#editgrid").jqGrid('editGridRow',"new",{height:280,reloadAfterSubmit:false});
Now, based on a functionality I hide and show some columns in the same grid “editgrid” and when I click add row, it again shows the same previous fields instead of new ones.
eg. when I load the grid first, I show [‘Date’,’Client’,’Amount’] columns. When I click add new row date, client, amount fields are shown in the pop up. Now based on the functionality, I hide Date, client and amount fields and show [‘Tax’,’Total’,’Closed’] fields. When I click add, it again show the same previous fields date, client,amount. But it should show tax, total, closed.
Please help!!!
Thanks
I suppose you can solve the problem using additional property recreateForm:true: