jqgrid表头怎么放button

jqgrid表头怎么放button,第1张

在配置里加一个toolbar: [true, "top"],即在顶部添加一个toolbar ,然后在页面代码里加一句$("#t_JQGridName").append(这里写你想添加的东西,比如想在toolbar里加一个table就写 "表格")。另外注意#后的格式是“t_你的JQGrid的名字”。

jQuery("#grid_id").navButtonAdd('#pager',{ caption:"Excel",buttonicon:"ui-icon-excel",onClickButton: function(){ alert("导出excel") },position:"last"})


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/bake/7990431.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2023-04-12
下一篇 2023-04-12

发表评论

登录后才能评论

评论列表(0条)

保存