Search code examples
phpphpgrid

Modify tool-tip of phpgrid dynamically


I am using data grid from www.phpgrid.com for my website. I want to customize the tool-tip to something custom. Which file should I mod and what should I do?

I saw a reference in their documentation :

http://phpgrid.uservoice.com/knowledgebase/articles/33488-tool-tip-for-column-headers

But this didn't work for me.


Solution

  • What are you trying to do?? The code is pretty self-explanatory. Replace "Column 1 header title" for the first column header, replace "Column 2 header title" for the second one, and so forth.

    jQuery(document).ready(function($){
        jQuery("tr.ui-jqgrid-labels th:eq(0)").attr("title", "Column 1 header title");
        jQuery("tr.ui-jqgrid-labels th:eq(1)").attr("title", "Column 2 header title");
        jQuery("tr.ui-jqgrid-labels th:eq(2)").attr("title", "Column 3 header title");
    
    });