to edit a row in jqgrid, i use editGridRow. i see that you can pass in a width like this:
ondblClickRow: function (rowid) {
jQuery('#grid').editGridRow(rowid, true, { width: 600 });
}
but is there anyway to have jqgrid auto calculate the width (based on the width of the largest field length) by using “auto” or something like that ??
The setting of
{width: "auto"}work good in all modern web browsers excepting Internet Explorer of course.The following CSS solve the problem at least in IE8/IE9:
The corresponding demo you will find here.
The solution for “retro” versions of IE can be more complicated and should be based on direct setting of widths of different components of the edit form. The rough solution based on the way is here.