JqGrid: Remove tooltip for all rows & columns

匿名 (未验证) 提交于 2019-12-03 02:00:02

问题:

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


标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!