Hi

I want to insert a new row at the same position as currently selected row (eg pos 5)
selected row shifts down to pos 6 and new row is inserted at pos 5
This is working ok

Question best approach to get current rowIndex in javascript?
I am using something like this atm

"var rowIndex = #{gridPanel}.selModel.last; " +
"if (!rowIndex) { rowIndex = 0; } " +
"#{gridPanel}.insertRecord(rowIndex, {}); " +
"#{gridPanel}.getView().focusRow(rowIndex); " +
"#{gridPanel}.startEditing(rowIndex, 2);";
(I have two locked columns in the grid)

rgds/Peter