开发者

jqGrid - how do I resize not just the TD but also TD inner DIV when TH (column) is resized?

开发者 https://www.devze.com 2023-01-02 10:17 出处:网络
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&a

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
});
0

精彩评论

暂无评论...
验证码 换一张
取 消