Hi,
I am working on a listgrid where I would need to restrict the number of records added to it. Lets say 100.
I have an add button which invokes startEditingNew(), where I can restrict. But on pressing the down arrow from an currently editing row, a new row is added (I am aware that this is normal behavior and we need this).
I have tried restricting from RowEditorExitHandler by getting the rowNum from event. But, if I cancel the event and prevent it from adding next row, I am not able to save changes made on the last row.
Is there any other way to handle this on the client side? Please let me know.
Thanks
I am working on a listgrid where I would need to restrict the number of records added to it. Lets say 100.
I have an add button which invokes startEditingNew(), where I can restrict. But on pressing the down arrow from an currently editing row, a new row is added (I am aware that this is normal behavior and we need this).
I have tried restricting from RowEditorExitHandler by getting the rowNum from event. But, if I cancel the event and prevent it from adding next row, I am not able to save changes made on the last row.
Is there any other way to handle this on the client side? Please let me know.
Thanks
Comment