i have a function where i manually set the width of a jqgrid
column. If I after this want to use the resize handle, it adds or substracts relative from the original width size. So it doesn't see my new width to take as a base. I have tried putting the width
and withOrg
in the colModel
without success.
I have a click handler inwhich i resize a column to a certain width on click. i set the width of the th
trought JS. After this i would like to be able to use the .ui-jqgrid-resize
element for resizing the column.
a short version of my code, say the th
is 200px wide:
$('th').dblclick(function(){
$(this).width('100px');
});
after the user doubleclicked, and the th
went smaller in size to 100px
, the user uses the resize handle to widen the th
10px
. The expected result is a th
of 110px
wide, but the th
jumps to 210px
wide. It adds the 10px
the user wanted to add to the original state, not the state i have set with the doubleclick.