Tooltip for Datagrid Column Header

539
2
10-28-2010 04:31 AM
StephanieWidas
New Contributor III
Greetings!
I used the example here - http://blogs.esri.com/Dev/blogs/arcgisserver/archive/2009/12/14/Add-a-Zoom-button-to-a-DataGrid.aspx - to set up a datagrid to display my results.  This works great, but I would like to change the tooltip that displays when you hover over the column name.  In the example, when you hover over the magnifying glass in the column header, a plus sign (+) appears.  I would like to change this to something more meaningful - like "Zoom."  I have searched and searched, but can not find where this is set.  Does anyone know how I can change it?
Thanks!
~Stephanie :confused:
0 Kudos
2 Replies
timgogl
New Contributor II
well, in the posted example, if you look at the source code, down in the HTML section look at your table tag. specifically this line:

              <th field="ObjectID" formatter="makeZoomButton" width="25px">
                <img alt="+" src="zoom.png"/>
              </th>


the <img> tag... change the '+' in the alt attribute to 'zoom' and that should do it.
0 Kudos
StephanieWidas
New Contributor III
YES!! That was it.  I knew it had to be something simple.  One of the drawbacks of copying and pasting code from examples...I didn't even see that in there.  Thank you!!!
0 Kudos