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

Display EDIT buttons on row mouseover

3 Answers 76 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jan
Top achievements
Rank 1
Jan asked on 14 Nov 2012, 10:55 PM
HI.

I'm battling to modify the GridviewRowTemplate to get the radgrdview to display an edit and delete button when the mouse is over the row. Or would it be better to simply put the edit buttons on the RowDetailsTemplate?

any suggestions would be appreciated.

Thanks,
JJ

3 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 15 Nov 2012, 08:28 AM
Hello Jan,

Would it be possible to clarify a bit - do you want to display them in  a ToolTip or in another place of the grid ? 

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Jan
Top achievements
Rank 1
answered on 15 Nov 2012, 08:52 PM
Hi Maya,

sorry, my question was a bit vague wasn't it :)

Goal was to display 2 buttons at the beginning of the row, although anywhere would be fine as long as you can see that they are part of the row being hovered over.

I originally thought perhaps in the first column showing or hiding the buttons depending on whether the mouse was over the row or not. I noticed the row highlights when you move your mouse over it so I figured I should look to tap into that somehow.

I don't expect anyone to hand me a solution but I could really do with some pointers and suggestions since my Silverlight knowledge has some pretty big holes in it :)

Thanks,
Jan

0
Accepted
Maya
Telerik team
answered on 16 Nov 2012, 08:56 AM
Hi Jan,

 One way to go would be to handle MouseEnter and MouseLeave events of the row and change the visibility of the button there (I am attaching a sample project illustrating this approach). Could you take a look at it and let me know whether this will meet your requirements ? 

Kind regards,
Maya
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
GridView
Asked by
Jan
Top achievements
Rank 1
Answers by
Maya
Telerik team
Jan
Top achievements
Rank 1
Share this question
or