Show Edit Template on Rowclick

3 posts, 1 answers
  1. Joshua
    Joshua avatar
    19 posts
    Member since:
    Apr 2008

    Posted 19 May 2008 Link to this post

    Good Day.

    I have been pulling my hair out trying to get this to work.  I have an edit template that i have been trying to show on row click.  I have tried to modify the sample of row double click and have been unsuccessful in doing so.  Is there anyone out there that has successfully accomplished this task?

    Also, one more thing you might be able to help me with.  I am trying to show and image only on row mouse over.  and once the row is click(as stated above), keep this picture showing.  onrowmouseout, the image would disappear.  Not just mousing over the image, but mouse over the row.  Any help would be greatly appreciated.

  2. Answer
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 May 2008 Link to this post

    Hi Joshua,

    Try the following code snippet to put a Grid row in edit mode on clicking the Row.

    <ClientSettings EnablePostBackOnRowClick="True"   > 

      protected void RadGrid1_ItemCommand(object source, GridCommandEventArgs e) 
            if (e.CommandName == "RowClick") 
                GridDataItem item = (GridDataItem)e.Item; 
                item.Edit = true


  3. binbin
    binbin avatar
    27 posts
    Member since:
    Sep 2006

    Posted 09 Sep 2008 Link to this post

    Hi shinu

    I have try to use your code, but i found when click delete button it is also go to edittemplate.

    I think the reason is, when i click on "delete" button The RowClick event also be fire. so do you know how to forbit it.
Back to Top