jqGrid 4.3 allows to add new row using inline edit.
Inline navigator demo in http://trirand.com/blog/jqgrid/jqgrid.html Shows that after add command grid is scrolled to top and added row appears in top of grid. This is confusing.
How to force added row to appear before current row?
I posted this as feature request in http://www.trirand.com/blog/?page_id=393/feature-request/force-added-row-in-inline-edit-to-appear-before-current-row/
In the answer I suggested to extend
addRowData
method to support new 'afterSelected' and 'beforeSelected' values (additionally to existing 'first', 'last', 'before' and 'after') of theposition
parameter. I shown one can overwrite (subclass) the originaladdRowData
method to add the support without writing the full code ofaddRowData
.In the corresponding demo I demonstrated how one could use the feature in case of the usage of form editing.
In the same way we can solve the problem in the inlineNav method too. The new demo demonstrate this.
The corresponding code is practically the copy of the codes from the answer.
Probably I should post to trirand the corresponding suggestion to modify the original
addRowData
method with the described above features.