jqGrid - 当TH(列)调整大小时,如何调整不只TD的TD,而TD内部DIV? [英] jqGrid - how do I resize not just the TD but also TD inner DIV when TH (column) is resized?
本文介绍了jqGrid - 当TH(列)调整大小时,如何调整不只TD的TD,而TD内部DIV?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要捕获调整列大小的事件。我该怎么做?
I need to catch the event where the columns are resized. How do I do that?
推荐答案
在我看来,你应该使用 resizeStop
事件(请参阅 http:/ /www.trirand.com/jqgridwiki/doku.php?id=wiki:events&s[]=resizeStop#list_of_events )
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 :
在调整jqGrid中的列标题大小后,调用 resizeStop
事件。例如
jQuery('#list').jqGrid({
caption: 'My caption',
url: myUrl,
resizeStop: function (newwidth,index) {
alert('Column #' + index + ' has now size ' + newwidth + ' px');
},
// other jqGrid parameters
});
这篇关于jqGrid - 当TH(列)调整大小时,如何调整不只TD的TD,而TD内部DIV?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文