Good Afternoon,
I've been stuck on the issue the last half of today:
I have a jqGrid with inline adding/editing enabled. Everything works great, but, I am trying to prevent the row being edited/added from being automatically cancelled once the user clicks another row. I've tried returning false in the 'beforeSelectRow', 'resetSelection' within 'beforeSelectRow', .setSelection of the row that is being edited within 'beforeSelectRow', setting all non "editable" rows as disabled; all to no avail. Additionally, it seems as though the 'gridID_licancel' button is not triggered once the user (me at the moment) clicks on another row; the editing/adding "session" is straight up cancelled via some other method.
I would like to be able to hook into this behavior at its source, as the cancellation of the add/edit session is occurring before the 'beforeSelectRow' event fires and is not taking place via a trigger of the 'gridID_licancel' click event.
Granted, a user shouldn't be out clicking like a maniac on all other rows, or what not, while a row is being edited or added, but, I foresee feedback on this functionality. There is not a lot of headroom within these rows and it could be a rather common occurrence for a user to just miss the "save" button, which is generated inline when the row becomes editable, and click another row and have to start over again. Merely making the rows taller is not a legit solution.
Another point to note, this behavior is only happening when clicking onto another row on the grid. I am working with a modal dialog, with a tabbed div inside it, and each tab has its own form. A row in this particular grid can be sitting there waiting for edits, and the user can go to another tab, submit data, come back, and the row is still waiting for edits; it is not auto cancelling itself. Also, on this grid I have hard set the grid's height, so if the user clicks in an empty area of the grid where there are no rows, the edit/add session is not cancelled. So, this is only happening once another row is clicked.
So, while a user is editing a row, how can I capture the selection of another row, before the add/edit session is cancelled??? Thanks for any help.