[jQuery] Re: jqGrid inline edit - cannot save or cancel if only one row

2008-09-08 Thread nelsonmichael
Thanks Tony, that seems to work. I also switched to using the double click handler and cleared the last selected value if they double click the same row to save their changes. ondblClickRow: function(id) { if (id) { var grid = jQuery('#grid'); if(id !== lastsel) {

[jQuery] Re: jqGrid inline edit - cannot save or cancel if only one row

2008-09-04 Thread Tony
Hello, I do not think so. This behavior is from a onSelectRow event. In the example page it check for the current and last selected row. If you have only one row this is really true. To overcome this we should change a logic in onSelectRow something like: var last_selected_row; onSelectRow