javascript JqG​​rid:删除所有行和列的工具提示

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7660475/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-26 00:50:13  来源:igfitidea点击:

JqGrid: Remove tooltip for all rows & columns

javascriptjqgrid

提问by omggs

I have a jqGrid table with many columns. I dont want to use the setCellmethod 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?

我有一个包含许多列的 jqGrid 表。我不想setCell对每一列使用该方法来禁用工具提示。有什么方法可以在一次拍摄中禁用所有列和行的工具提示,而无需遍历每一列?

回答by Oleg

If you use title: falsein the colModelno titleattribute 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: falseas your defaultsetting for colModelyou can use cmTemplate:

如果你使用title: falsecolModel任何title属性将用于在相应的列网格的细胞产生。因此不会显示任何工具提示,也不会显示单元格的悬停。要设置title: false为您的默认设置,colModel您可以使用cmTemplate

cmTemplate: { title: false }

See the old answerfor more information.

有关更多信息,请参阅旧答案

回答by sohaib

you can use title attribute for each column to hide the title tool tip for specific column as shown below :

您可以为每列使用标题属性来隐藏特定列的标题工具提示,如下所示:

{ name: 'Export To Excel ', index: 'exporttoexcel', sortable: false, editable: true,title:false, search: false,formatter: AppendCheckBox ,width:30},