JqGrid: Remove tooltip for all rows amp; columns(JqGrid:删除所有行的工具提示 amp;列)
问题描述
我有一个包含许多列的 jqGrid 表.我不想对每一列都使用 setCell
方法来禁用工具提示.有什么方法可以一次性禁用所有列和行的工具提示,而不循环遍历每一列?
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?
推荐答案
如果在 colModel
中使用 title: false
没有 title
属性将为相应列上网格的单元格创建.因此,不会显示任何工具提示,也不会显示单元格的悬停.要将 title: false
设置为 colModel
的 default 设置,您可以使用 cmTemplate
:
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.
这篇关于JqGrid:删除所有行的工具提示 &列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:JqGrid:删除所有行的工具提示 &列


- 400或500级别的HTTP响应 2022-01-01
- Fetch API 如何获取响应体? 2022-01-01
- Flexslider 箭头未正确显示 2022-01-01
- 失败的 Canvas 360 jquery 插件 2022-01-01
- Quasar 2+Apollo:错误:找不到ID为默认的Apollo客户端。如果您在组件设置之外,请使用ProvideApolloClient() 2022-01-01
- addEventListener 在 IE 11 中不起作用 2022-01-01
- 使用RSelum从网站(报纸档案)中抓取多个网页 2022-09-06
- Css:将嵌套元素定位在父元素边界之外一点 2022-09-07
- CSS媒体查询(最大高度)不起作用,但为什么? 2022-01-01
- 如何使用 JSON 格式的 jQuery AJAX 从 .cfm 页面输出查 2022-01-01