页脚文本格式的Jqgrid问题 [英] Jqgrid issue with footer text format

查看:105
本文介绍了页脚文本格式的Jqgrid问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Jqgrid中,我已将某些列设置为链接. 对于那些列,我都设置了页脚(MAX). 但是问题是,配置的链接也会被添加到页脚值中,这是不期望的.

In Jqgrid for some columns I have set as link. And also for those columns I have set footer (MAX). But the issue is, configured link is also getting added to the footer value, which is not expected.

感谢您的帮助.

谢谢.

推荐答案

我认为问题是如何添加页脚信息.如果您使用 footerData ,则可以使用false作为最后一个 footerData 的参数(format参数).在这种情况下,页脚数据将不会被相应列的标准格式化程序格式化.作为示例,请参见演示.

I think the problem is how you add the footer information. If you use footerData you can use false as the last parameter (the format parameter) of footerData. In the case the footer data will not be formatted by the standard formatter of the corresponding column. As the example see the demo.

如果您使用 userdata userdata 并使用 userDataOnFooter jqGrid选项,格式化程序参数将始终用作true(请参见jqGrid 这里这里).解决方法是,您可以删除userDataOnFooter:true设置并手动添加有关 localComplete事件句柄中的"> footerData :

If you add the data from the server using userdata and use userDataOnFooter jqGrid option the formatter parameter will be alway used as true (see the source code of jqGrid here and here). As a workaround you can remove userDataOnFooter:true setting and add the footer information manually with respect of footerData inside your localComplete event handle:

var myGrid = $("#list"); // your grid
// ...

// inside of localComplete you can add the data
var userData = myGrid.jqGrid("getGridParam","userData");
myGrid.jqGrid("footerData","set",userData,false);

这篇关于页脚文本格式的Jqgrid问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆