开发者

jqGrid - column resize event

开发者 https://www.devze.com 2022-12-10 20:13 出处:网络
I\'m having a problem with jqGrid. I need to call a function when a column is resized. I have tried the following...

I'm having a problem with jqGrid. I need to call a function when a column is resized. I have tried the following...

$grid = jQuery("#list").jqGrid({
    ...          
resizeStop: function(width, index) { 
        alert("resiz开发者_JS百科e column " + index + " to " + width " + "pixels"); 
    },
    ...
}); 

... but the event does not fire.

Am I missing something? Any ideas anyone?

Thanks!


Ah, found the problem.

The code was correct, but I had downloaded a version of jqGrid without jQuery UI addons enabled. I fixed it but downloading the complete version of jqGrid.

0

精彩评论

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