Jquery – jqgrid Tooltip on page buttons

jqgridjquery

I noticed that when you hover the mouse over the reload and search buttons at the bottom of the grid, a tooltip appears indicating "reload" and "search" .. I'd like the same behaviour with the next page buttons (the left,right arrows) , last page button. Any idea how i can accomplish that without modifying any source code? I noticed that there is no title attribute on those buttons, thats why there's no tooltip.
Any tips would be helpful..

Best Answer

Try to set the title attribute dynamically in the gridComplete event:

jqGrid({ gridComplete: function() { 
      $("#pager").find("the_button_selector").attr("title", "Button tooltip"); 
   }, 
   ... 
});

You'll have to find out those button's ids and use them instead of "the_button_selector". Should be easy with FireBug, for example.

Related Topic