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

row details on click

1 Answer 18 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Joslyn
Top achievements
Rank 1
Joslyn asked on 25 Oct 2013, 09:14 AM
Hi
I have a radgrid and on the row click.i want that particular column detail.anybody can you please tell me how to get the data of the selected row on row click at clientside.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 1
answered on 25 Oct 2013, 09:19 AM
Hi Joslyn,

Please try the sample code snippet,on the RowClick event i have shown the data  of that row being clicked for a column.

ASPX:
<telerik:RadGrid ID="RadGrid1" runat="server" . . >
    <ClientSettings>
        <ClientEvents OnRowClick="OnRowClick" />
    </ClientSettings>
    <MasterTableView >
        <Columns>
           . . . . . . . .
        </Columns>
    </MasterTableView>
</telerik:RadGrid>

JS:
<script type="text/javascript">
 function OnRowClick(sender, args) {
   var value = args.get_domEvent().target.innerHTML;
   alert(value);
 }
</script>

Thanks,
Princy
Tags
Grid
Asked by
Joslyn
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 1
Share this question
or