jqGrid - how do I resize not just the TD but also TD inner DIV when TH (column) is resized?
I need to catch the event where the columns are resized. H开发者_开发技巧ow do I do that?
It seems to me you should use resizeStop
event (see http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events&s[]=resizeStop#list_of_events)
UPDATED:
After you resize a column header in the jqGrid it calls resizeStop
event. For example
jQuery('#list').jqGrid({
caption: 'My caption',
url: myUrl,
resizeStop: function (newwidth,index) {
alert('Column #' + index + ' has now size ' + newwidth + ' px');
},
// other jqGrid parameters
});
精彩评论