Mar 16, 2009, 8:46 AM
Q: Gridpanel and inserting a new row right above selected row
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
rgds/Peter
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