How to add Tooltip to jqgrid

后端 未结 2 753
醉酒成梦
醉酒成梦 2021-01-13 04:00

I am using jqgrid to display data present in server how do i show description of data on mouse hover tool tip.

which is the best way to show tool tip on jqgrid?

2条回答
  •  爱一瞬间的悲伤
    2021-01-13 04:55

    Tooltip shown in jqGrid on mouse hover is nothing more as the "title" atribute of the corresponding HTML elements. If you want change tooltip with setCell:

    $("#list").setCell(rowid,'Name','','',{'title':'my custom tooltip on cell'});
    

    where the 'Name' is the column name where the tooltip will be set and rowid identify the row. For more informaion read this answer including the references.

提交回复
热议问题