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
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 ?
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 :)
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 ?