|
|
|
start date: Wed, 2 May 2007 08:41:18 -0500,
posted on: microsoft.public.dotnet.framework.aspnet.datagridcontrol
back
| Thread Index |
|
1
Beemer Biker
|
|
2
Beemer Biker
|
|
3
MasterGaurav \(www.edujini-labs.com\)
|
|
4
Beemer Biker
|
|
5
MasterGaurav \(www.edujini-labs.com\)
|
grid cell has onclick but hand is not shown
I added an onclick event to a grid cell at bind time
e.Row.Cells[nFieldNum].Attributes.Add("onclick", "return
LaunchInfo('../DetailLocation.aspx')")
This works fine, but there is no indication that one can "click" on the cell
when the cursor is mioved over the item in the cell.
I would like the mouse cursor to change to a hand and back to normal as it
moves over the clickable item. Also, it is even hard to look up information
about this. Where would I go (VS8) to find help about .Attributes.Add(
where visual studio would list the range of arguments available to the Add?
If I highlight Attributes.Add and presss F1 i get Type.Atributes property
help page but what I really want is a list of what the Add arguement can be.
...TIA..
--
======================================================================
Joseph "Beemer Biker" Stateson
http://TipsForTheComputingImpaired.com
http://ResearchRiders.org Ask about my 99'R1100RT
======================================================================
Date:Wed, 2 May 2007 08:41:18 -0500
Author:
|
Re: grid cell has onclick but hand is not shown
I never got a "hand" to appear but I was able to add a mouseover type
tooltip to prompt the user to click for details (from dynamicdrive.com ...
thanks)
e.Row.Cells[nFieldNum].Attributes.Add("onMouseover", "ddrivetip('click to
view detail','yellow',200)");
e.Row.Cells[nFieldNum].Attributes.Add("onMouseout", "hideddrivetip()");
a hand can appear with <a href .. data_to_click_on a> but i dont see how
to set that up in a bound data cell in a grid.
"Beemer Biker" wrote in message
news:133h57uo0jfgv24@corp.supernews.com...
>I added an onclick event to a grid cell at bind time
> e.Row.Cells[nFieldNum].Attributes.Add("onclick", "return
> LaunchInfo('../DetailLocation.aspx')")
>
>
> This works fine, but there is no indication that one can "click" on the
> cell when the cursor is mioved over the item in the cell.
>
> I would like the mouse cursor to change to a hand and back to normal as it
> moves over the clickable item. Also, it is even hard to look up
> information about this. Where would I go (VS8) to find help about
> .Attributes.Add( where visual studio would list the range of arguments
> available to the Add? If I highlight Attributes.Add and presss F1 i get
> Type.Atributes property help page but what I really want is a list of what
> the Add arguement can be.
>
Date:Tue, 8 May 2007 11:43:38 -0500
Author:
|
Re: grid cell has onclick but hand is not shown
>I added an onclick event to a grid cell at bind time
> e.Row.Cells[nFieldNum].Attributes.Add("onclick", "return
> LaunchInfo('../DetailLocation.aspx')")
>
>
> This works fine, but there is no indication that one can "click" on the
> cell when the cursor is mioved over the item in the cell.
Do you see the 'onclick' attribute in the rendered table?
You may want to try:
style="cursor: hand"
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Date:Wed, 9 May 2007 13:12:38 +0530
Author:
|
Re: grid cell has onclick but hand is not shown
"MasterGaurav (www.edujini-labs.com)"
wrote in message news:eooz6kikHHA.4248@TK2MSFTNGP06.phx.gbl...
> >I added an onclick event to a grid cell at bind time
>> e.Row.Cells[nFieldNum].Attributes.Add("onclick", "return
>> LaunchInfo('../DetailLocation.aspx')")
>>
>>
>> This works fine, but there is no indication that one can "click" on the
>> cell when the cursor is mioved over the item in the cell.
>
> Do you see the 'onclick' attribute in the rendered table?
>
> You may want to try:
> style="cursor: hand"
Thanks MasterGaurav - I also found (by experimenting) that I could use the
following instead of building my own tooltip
e.Row.Cells[nFieldNum].Attributes.Add("title", "click for details");
Not sure why "title" is used instead of "tooltip"
I am used to having intellisense show me what is available but that does not
work in C# where attributes are being added to a cell programatically. It
is difficult to find what is available for "add"ing using F1 and the built
in help features of VS2005. If I was in jscript then entering a "space"
would have listed available options for the gadget being edited. Is there
good reference to lookup and find stuff like that? For example, in
jscript, if I highlight "window.open' and press F1 there is no help under
Web Development.net but "open" by itself goes to document.open which lists
all the arguements available and they work with window.open. This does not
seem consistent when intellisense shows no arguements for document.open()
but intellisense properly lists all the optional args for window.open()
...thanks..
Date:Wed, 9 May 2007 08:44:56 -0500
Author:
|
Re: grid cell has onclick but hand is not shown
> Thanks MasterGaurav - I also found (by experimenting) that I could use the
> following instead of building my own tooltip
> e.Row.Cells[nFieldNum].Attributes.Add("title", "click for details");
>
> Not sure why "title" is used instead of "tooltip"
Because the attribute 'title' is given in HTML specifications :-)
--
Happy Hacking,
Gaurav Vaish | www.mastergaurav.com
www.edujini-labs.com
http://eduzine.edujini-labs.com
-----------------------------------------
Date:Thu, 31 May 2007 17:33:03 +0530
Author:
|
|
|