Hi
I have a link button inside the GridTemplateColumn, and i want to know the row index when i click on the link button client side.
Below is the code i have:
I have a link button inside the GridTemplateColumn, and i want to know the row index when i click on the link button client side.
Below is the code i have:
<telerik:RadGrid ID="grdDetailSummary" runat="server"> <MasterTableView DataKeyNames="Id" ClientDataKeyNames="Id"> <Columns> <telerik:GridTemplateColumn HeaderText="Open" UniqueName="colOpenLink"> <ItemTemplate> <asp:LinkButton runat="server" ID="lnkReason" Font-Underline="true" Text="Open" OnClientClick="javascript:OpenNewWindow()"></asp:LinkButton> </ItemTemplate> </telerik:GridTemplateColumn> </Columns> </MasterTableView> </telerik:RadGrid><script language="javascript" type="text/javascript"> function OpenNewWindow() { //I want to know the row index here, and ultimately i want to get the value from datakeyvalues. } </script>