JqGrid:删除所有行的工具提示&列

JqGrid: Remove tooltip for all rows & columns

本文关键字:工具提示 删除 JqGrid      更新时间:2023-09-26

我有一个包含许多列的jqGrid表。我不想对每个列使用setCell方法来禁用工具提示。是否有任何方法可以在一次拍摄中禁用所有列和行的工具提示,而不循环遍历每个列?

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

cmTemplate: { title: false }

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

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