JqGrid:删除所有行的工具提示&列 [英] JqGrid: Remove tooltip for all rows & columns
问题描述
我有一个包含许多列的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
no title
属性中使用 title:false
将为相应列上的网格单元格创建。因此,不会显示工具提示,也不会显示细胞悬停。要将 title:false
设置为 colModel
的默认设置,您可以使用 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 }
参见旧答案了解更多信息。
这篇关于JqGrid:删除所有行的工具提示&列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!