简体   繁体   中英

jqGrid - Is there any “grid edit mode”?

I'm new with the jqGrid and I want to know if there is any way I can set the whole grid in edit mode.

I just have one editable column. It is basically a checkbox list. My first approach was this code when the user enters in edit mode:

var ids = $("#tblPermisos").jqGrid('getDataIDs');
for (var i = 0; i < ids.length; i++)
    $('#tblPermisos').editRow(ids[i], false);

This seem to work great, but when the users changes the page all rows in edit mode are canceled (or saved, don't know). I'd prefer to avoid handling the events to keep edit mode for all rows. So, back to my question, is there any "grid edit mode" or other simpler way than handling events?

I did a little online research, and I did not find any "toggle" to keep a grid in edit mode continuously. Places I looked are jqGrid: All rows in "inline edit mode" by default and http://www.trirand.com/jqgridwiki/doku.php?id=wiki:inline_editing#editrow

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM