JqGrid - column resize event

I have a problem with jqGrid. I need to call a function when resizing a column. I tried the following ...

$grid = jQuery("#list").jqGrid({
    ...          
resizeStop: function(width, index) { 
        alert("resize column " + index + " to " + width " + "pixels"); 
    },
    ...
}); 

... but the event does not fire.

Am I missing something? Any ideas anybody?

Thanks!

+3
source share
1 answer

Ah, I found a problem.

The code was correct, but I downloaded the jqGrid version without adding jQuery UI addons. I fixed it, but downloaded the full version of jqGrid.

+5
source

Source: https://habr.com/ru/post/1722428/


All Articles