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

[Solved] Edit mode on row select

1 Answer 97 Views
Grid
This is a migrated thread and some comments may be shown as answers.
eric
Top achievements
Rank 1
eric asked on 11 Dec 2009, 01:30 AM
Is it possible to have a grid go into edit mode when a user clicks on a row?  I currently have an expand button but I think it would be more intuitive to have them be able to click anywhere on the row.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 11 Dec 2009, 04:07 AM
Hello Eric,

Try the following client side code in order to set the row in editmode on clicking the row.

javscript:
 
<script type="text/javascript"
    function OnRowClick(sender, eventArgs) { 
        editedRow = eventArgs.get_itemIndexHierarchical(); 
        $find("<%= RadGrid1.MasterTableView.ClientID %>").editItem(editedRow); 
    } 
</script> 

-Shinu.
Tags
Grid
Asked by
eric
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or