jqgrid column resize after manually width change -
I have a function where I manually set the width of the jqgrid
column if I I want to use it to resize handle, so it adds relative or sub-all to the size of the original width. So it does not see my new width to take it as a base. I've tried putting width
and withOrg
without any success
I have a click handler in which I resize it, a column for a certain width on click. I have set the width of the trust js th
. After this I want to be able to use the .ui-jqgrid-resize
element to change the size of the column.
A small version of my code, say th
is 200px wide:
$ ('and'). Dblclick (function () {$ (this) .wid ('100px');});
After the user double-clicked, and the th
size went to 100px
in small, using the user resize handle th
10px
for. Expected result is a th
of 110px
wide, but jumps to widen th
to 210px
. It adds 10px
, the user wants to add to the original state, not the state I have set with DoubleClick.
I want you to change the width of the grid column, which is the first (see) plugin from Use the setColWidth
method to advise you can download the current version of the plugin.
If you are trying to determine the width of the column based on the width of the content of the column, then I would advise you to prepare for it and also not read the code as the last code for me , But the demo shows my thoughts on this problem and ways to implement the "AutoWeuth" functionality.
Comments
Post a Comment