JqGrid: Remove tooltip for all rows & columns

2019-01-25 04:20发布

问题:

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},