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

how to write custom code when i double click a row in radgrid

1 Answer 38 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Narendra
Top achievements
Rank 1
Narendra asked on 28 Mar 2013, 06:48 AM
I am displaying a table in radgrid.The table has 10 columns.when i insert data into table i gave only 5 values.Other values is performing aithmetic opertions.I want to display edit page(.aspx) when i double click the row in radgrid.where should i write the code to perform aithmetic operations.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 28 Mar 2013, 07:31 AM
Hi,

Try the following javascript to show the row in edit mode on doubleclick.
JS:
function RowDblClick(sender, eventArgs) {
                editedRow = eventArgs.get_itemIndexHierarchical();
                $find("<%= RadGrid1.ClientID %>").get_masterTableView().editItem(editedRow);
            }

Thanks,
Shinu
Tags
Grid
Asked by
Narendra
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or