0
我有<telerik:RadGrid/>
該網格內我有以下列包含按鈕Telerik的radgrid控件如何顯示確認消息
<telerik:GridTemplateColumn >
<ItemTemplate>
<asp:Button ID="btnDelete" runat="server" Text="Delete"
CommandArgument='<%#Container.ItemIndex%>' OnCommand="btnDelete_Command">
protected void btnDelete_Command(object sender, CommandEventArgs e)
{
Telerik.Web.UI.GridDataItem item = gvAllDocuments.Items[int.Parse(e.CommandArgument.ToString())];
string FileName = item["documentFileName"].Text;
}
如何可以函數之前添加確認消息btnDelete_Command正在執行..
DataKeyValues你可以將它設置''。請確保它在數據庫表中是** unique **。你可以閱讀更多[這裏](http://docs.telerik.com/devtools/aspnet-ajax/controls/grid/defining-structure/radgrid-and-mastertableview-difference) –
Win
我使用Telerik.Web.UI.GridDataItem item =(GridDataItem)e.Item; int DocumentId = int.Parse(item [「id」] .Text); –