开发者

can you replicate all buttons on the top in jqgrid

i see in jqgrid you can move the pager up to the top of the grid and the default buttons but i wanted to see if you can move the entire row (including buttons default and custom along with the pager) to the top above the grid ?

if i use clonetoTop it only moves the regular buttons but not ones that i add dynamically

Update:


As you can see below, i 开发者_StackOverflowadded my own personal RefreshGrid button using this code and its not showing up at top:

 .navButtonAdd('#pager', {
            caption: "",
            title: "Reload Grid",
            buttonicon: "ui-icon-refresh",
            onClickButton: function () {
                $(gridSelector).trigger("reloadGrid");
            },
            position: "last"
        });

can you replicate all buttons on the top in jqgrid


The parameter cloneToTop:true of the navGrid do what you need:

$("#list").jqGrid('navGrid', '#pager', {cloneToTop: true});

See here and here for additional information.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜