Start Building Professional
Web Apps Today


 
Categories Question details Back To List
Question  posted by Gaurav Arora on Feb 20, 2009 08:31
open dhtmlx forum
tooltip for master_checkbox

Hi,

I am loading a subgrid using XML which has a #master_checkbox as the first column. How can I get a custom tooltip for the #master_checkbox cell (only for the #master_checkbox cell and not the entire column).

Following is the header section from the XML file...
<head>
                    <column width="25" type="ch">#master_checkbox</column>
                    <column width="125" type="ro">Client</column>
                    <column width="60" type="ch" align="center">Public?</column>
                    <column width="110" type="ro" align="center">Statement Type</column>
                    <column width="80" type="ro" align="center">Period Year</column>
                    <column width="80" type="ro" align="center">Period Type</column>
                    <column width="80" type="ro" align="center">Grace Days</column>
                    <column width="85" type="ed" align="center">Status</column>
                    <afterInit>
                 <call command="enableTooltips"><param>true,true,false,true,false,false,false,false</param></call>
                 </afterInit>
                </head>

Thanks,
Gaurav Arora
Answer posted by dhxSupport on Feb 23, 2009 02:49

Grid hasn't native API wich allow you to set tooltip for the header. It can be done via DOM:

mygrid.hdr.rows[1].cells[0].title='tooltip';

Answer posted by Support on Feb 23, 2009 06:28
Or just place an HTML snippet inside header 
  <column width="80" type="ro" align="center"><![CDATA[<span title="any custom tooltip here"> Period Year </span>]]></column>