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

落爺英雄遲暮 提交于 2020-01-06 08:52:01

问题


I need to catch the event where the columns are resized. How do I do that?


回答1:


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


来源:https://stackoverflow.com/questions/2993779/jqgrid-how-do-i-resize-not-just-the-td-but-also-td-inner-div-when-th-column

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!