Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mouse Over/Out + DataGrid 1

Status
Not open for further replies.

Isadore

Technical User
Feb 3, 2002
2,167
US
Have been reviewing MouseOver/Out Javascript and before I get started thought I'd ask for a sentence or two of advice from the experts -- when I have it up and running I will share the solution.

What I'd like to do is this:

1) Call up a collection of records in a DataGrid with a hyperlink column(say, from 1 to 50)

2) Hookup MouseOver/Out so that it is triggered when the pointer is over the DataGrid hyperlink (will this work?)

3) OnMouseOver/Out exchange out several Charts (using ChartDirector) that can be pre-loaded (this part I don't think is a problem).

Question is: Do you think this can be done with a DataGrid? The hyperlink will be a date, the graph will represent information collected on that date. The idea is to "roll over" the dates and exchange out the charts.

Thanks!
 
It can be done the same way you'd do it for any item on the screen. Just add your onMouseOver to the ASP control

example

Code:
<ASP:LABEL id=lblWording Text='<%# Convert.ToString(DataBinder.Eval(Container.DataItem,&quot;Wording&quot;)) %>' Runat=&quot;server&quot; onmouseover=alert(&quot;hi&quot;);></ASP:LABEL>


works fine
 
J: Thanks for your input, clean looking code. I'll repost when I get it up and functioning. Thanks again!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top