This is a migrated thread and some comments may be shown as answers.

Change mouse hover over row

2 Answers 269 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Laura
Top achievements
Rank 1
Laura asked on 22 Jan 2009, 04:03 AM
I have a grid which I have row selecting turned on. I make it appear to the user as if they are clicking on a hyperlink when they click on a row by underlining the text in the column. How can I change the mouse hover from a caret to a pointer so that it really appears as if they are hovering over a hyperlink?

Thanks,
Laura

2 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 22 Jan 2009, 07:23 AM
Hello Laura,

You can try out the following code to change the cursor style on grid rows:
cs:
protected void RadGrid1_ItemDataBound(object sender, GridItemEventArgs e) 
    { 
        if (e.Item is GridDataItem) 
        { 
            GridDataItem dataItem = (GridDataItem)e.Item; 
            dataItem.Attributes.Add("style", "cursor:pointer"); // for the entire row           
           dataItem["columnUniqueName"].Attributes.Add("style", "cursor:pointer"); // for a particular cell 
             
        }  
    } 
 

Thanks
Princy.
0
Laura
Top achievements
Rank 1
answered on 22 Jan 2009, 02:20 PM
Thanks...worked perfectly!
Tags
Grid
Asked by
Laura
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Laura
Top achievements
Rank 1
Share this question
or