i have interactive grid to save item data. Line item is using JS to get number whenever there is new item. after saving IG, return line item from table, but whenever i click butt "Add Item", IG count from 1 and become duplicate Line Item number. Here is screenshot after saving:
when add new item to update IG data:
How to fix it? it could be start from 2 or count from the last number of line item.