JqG​​rid:删除所有行的工具提示 &列 [英] JqGrid: Remove tooltip for all rows & columns

查看:16
本文介绍了JqG​​rid:删除所有行的工具提示 &列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含许多列的 jqGrid 表.我不想对每一列都使用 setCell 方法来禁用工具提示.有什么方法可以一次性禁用所有列和行的工具提示,而不循环遍历每一列?

I have a jqGrid table with many columns. I dont want to use the setCell method for every column to disable tooltip. Is there any way to disable tool tips for all the columns and rows in one shot with out looping through each column?

推荐答案

如果在 colModel 中使用 title: false 没有 title 属性将为相应列上网格的单元格创建.因此,不会显示任何工具提示,也不会显示单元格的悬停.要将 title: false 设置为 colModeldefault 设置,您可以使用 cmTemplate:

If you use title: false in the colModel no title attribute will be created for the cells of the grid on the corresponding column. So no tooltips will be shown no the hovering of cells. To set title: false as your default setting for colModel you can use cmTemplate:

cmTemplate: { title: false }

有关详细信息,请参阅旧答案.

See the old answer for more information.

这篇关于JqG​​rid:删除所有行的工具提示 &列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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