GridView - ToolTip

  • Thread starter Thread starter Guest
  • Start date Start date
It is not that difficult. Basically, you need to handle client side events
onmouseover and onmouseout for the grid cells. In the event handlers you
will control the cursor shape and make a tooltip with some javascripting and
background images. You will need to setup the event handlers in the grid's
RowDataBound event with the TableCell's Attributes collection. You can pass
the tooltip text in the ToolTip property and pick it up on client side in
the <td>'s title property.
 
Hi

Thanks !

I am not able to follow "In the event handlers you will control the cursor
shape and make a tooltip with some javascripting and background images."

Eliyahu Goldin said:
It is not that difficult. Basically, you need to handle client side events
onmouseover and onmouseout for the grid cells. In the event handlers you
will control the cursor shape and make a tooltip with some javascripting and
background images. You will need to setup the event handlers in the grid's
RowDataBound event with the TableCell's Attributes collection. You can pass
the tooltip text in the ToolTip property and pick it up on client side in
the <td>'s title property.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


Raj said:
I have a very unique requirement, I have to add a tooltip in a grid view
control, the tooltip should be similar to this link:

http://web-graphics.com/mtarchive/BubbleTooltips.html ...(hover at the link)



Do you have any suggestion on this..

Thanks

ASP.NET 2.0 / C#
 
This means you have to be able to produce some javascript that will achieve
the desired effect.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Raj said:
Hi

Thanks !

I am not able to follow "In the event handlers you will control the cursor
shape and make a tooltip with some javascripting and background images."

Eliyahu Goldin said:
It is not that difficult. Basically, you need to handle client side
events
onmouseover and onmouseout for the grid cells. In the event handlers you
will control the cursor shape and make a tooltip with some javascripting
and
background images. You will need to setup the event handlers in the
grid's
RowDataBound event with the TableCell's Attributes collection. You can
pass
the tooltip text in the ToolTip property and pick it up on client side in
the <td>'s title property.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin


Raj said:
I have a very unique requirement, I have to add a tooltip in a grid
view
control, the tooltip should be similar to this link:

http://web-graphics.com/mtarchive/BubbleTooltips.html ...(hover at the link)



Do you have any suggestion on this..

Thanks

ASP.NET 2.0 / C#
 
Back
Top