Display EDIT buttons on row mouseover

4 posts, 1 answers
  1. Jan
    Jan avatar
    8 posts
    Member since:
    Jul 2012

    Posted 14 Nov 2012 Link to this post

    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
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 15 Nov 2012 Link to this post

    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.

  3. Jan
    Jan avatar
    8 posts
    Member since:
    Jul 2012

    Posted 15 Nov 2012 Link to this post

    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

  4. Answer
    Maya
    Admin
    Maya avatar
    4062 posts

    Posted 16 Nov 2012 Link to this post

    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.

Back to Top