hi telerik
i have a button in my grid like this :
i want when i click on my button in radgrid i know wich button in wich row item is clicked.
in other ways i want to get row index of clicked button and get record ID to another operations
i do this in onClick event in [clk] function:
but in RadGrid1.MasterTableView.DataKeyValues[ ?] <<< i cant get clicked row index
do you have idea about my problem?
tnx
i have a button in my grid like this :
<telerik:GridTemplateColumn HeaderText="edit"> |
<ItemTemplate> |
<asp:Button ID="btn" runat="server" Text="edit" Font-Names="tahoma" OnClick="clk" /> |
</ItemTemplate> |
</telerik:GridTemplateColumn> |
i want when i click on my button in radgrid i know wich button in wich row item is clicked.
in other ways i want to get row index of clicked button and get record ID to another operations
i do this in onClick event in [clk] function:
int es_ID = int.Parse(RadGrid1.MasterTableView.DataKeyValues[0]["es_ID"].ToString()); | |
ScriptManager.RegisterStartupScript(Page, Page.GetType(), Guid.NewGuid().ToString(), "showdialog(1,1);", true); |
do you have idea about my problem?
tnx