开发者

jqGrid. Animate hide/show columns

How to animate hide/show columns?

$("#button").toggle(
    function() {
        $('#data').jqGrid('hideCol',['col1','col2','col3']);
        // $("bla-bla").animate({
            // width: 100
        // }, 1000 );
    },
    function() {
        $('#data').jqGri开发者_如何转开发d('showCol',['col1','col2','col3']);
        // $("bla-bla").animate({
            // width: 0
        // }, 1000 );
    }
);

jqGrid. Animate hide/show columns

Is it possible?

We have many columns. Perhaps there is another way to fit all columns in one screen?


I don't think this is easily possible without changing some internal jqgrid behaviors. You could use combinations of autowidth forceFit and shrinkToFit to make the grid use the maximum available screen real estate and resize the columns so they all get some of the available space proportionally.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜