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?
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
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.
回答2:
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},