Can we edit frozen column in jqgrid -
i have jqgrid inline edit , few frozen columns. gathered information on how make work here. answer in link has frozen column multi-select. wanted know if there way or work around edit frozen column in inline edit.
i have been trying figure 1 out little while now, , able come works situation. can similar.
i created following function called when edit button clicked:
var editrow = function(rowid) { $('#' + gridid).editrow(rowid); $('#' + gridid + '_frozen').editrow(rowid); };
this make frozen columns appear editable user.
i created following function called when save button clicked:
var saverow = function(rowid) { $('#' + gridid + '_frozen' + ' #' + rowid + ' > td').each(function () { var col = $(this).attr('aria-describedby'); $('#' + gridid + ' #' + rowid + ' > td[aria-describedby="' + col + '"]') .children(':first') .val($(this).children(':first').val()); }); $('#' + gridid).saverow(rowid); };
this code take value frozen cell , copy underlying hidden cell - cell value submitted on save.
i have cancel option, calls following method:
var cancelrow = function(rowid) { $('#' + gridid).restorerow(rowid); $('#' + gridid + '_frozen').restorerow(rowid); };
update: found solution works in ie(8), not in chrome or firefox. web application working on needs compatible ie8, try find solution other browsers well.
Comments
Post a Comment