Search code examples
javascriptjqueryjqgridtooltip

jqgrid: set column header tooltips differing from the column label


As I understand there are a few ways to set different column header tooltips. Currently my solution is to set the tooltips with jQuery .attr().

My question would be whether is there a concise way to store the custom header tooltip values inside colModel?

Would make easier to oversee the different options.


Solution

  • The answer on your question depends on the version of jqGrid, which you use, and the fork. I develop free jqGrid fork since the end of 2014 and have implemented headerTitle property in colModel starting with the version 4.9.1 (the current version is 4.14.4).

    One can specify the tooltip of the column header as the value of headerTitle property of colModel.