Good day!
Can I add delete confirmation when I select "Delete" in such a menu?
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx?product=menu
Is it possible to call to javascript function from such a C# code:
?
Can I add delete confirmation when I select "Delete" in such a menu?
http://demos.telerik.com/aspnet-ajax/controls/examples/integration/gridandmenu/defaultcs.aspx?product=menu
Is it possible to call to javascript function from such a C# code:
protected void RadMenu1_ItemClick(object sender, RadMenuEventArgs e)
{
int radGridClickedRowIndex;
radGridClickedRowIndex = Convert.ToInt32(Request.Form["radGridClickedRowIndex"]);
switch (e.Item.Text)
{
case "Edit":
RadGrid1.Items[radGridClickedRowIndex].Edit = true;
RadGrid1.Rebind();
break;
case "Add":
RadGrid1.MasterTableView.IsItemInserted = true;
RadGrid1.Rebind();
break;
case "Delete":
RadGrid1.MasterTableView.PerformDelete(RadGrid1.Items[radGridClickedRowIndex]);
break;
}
}
?