jquery - How to resize actions column in free jqgrid -
sometimes width of column containing inline edit buttons small. width cannot changed mouse.
for example, open demo from
http://www.ok-soft-gmbh.com/jqgrid/ok/removepagehorizontalscrollbar2.htm
and try resize actions or number column dragging right border in header. column width not change.
how fix actions , number column widths can changed user ?
the referenced example contains column defined as
{ name: "act", template: "actions", width: 66 }
the width
of act
column fixed , 66px
. template actions
defined following (see the line of code):
actions: function () { return { formatter: "actions", width: (this.p != null && this.p.fontawesomeicons ? 33 : 37) + (jgrid.cellwidth() ? 5 : 0), align: "center", label: "", autoresizable: false, frozen: true, fixed: true, hidedlg: true, resizable: false, sortable: false, search: false, editable: false, viewable: false }; }
you can see contains fixed: true, resizable: false
properties. if want change properties can redefine values of template in column definition:
{ name: "act", template: "actions", width: 66, fixed: false, resizable: true }
Comments
Post a Comment