Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
protected
void
RadMenu1_ItemClick(
object
sender, RadMenuEventArgs e)
{
int
radGridClickedRowIndex;
string
UId;
[] indices = Request.Form[
"radGridClickedRowIndex"
].Split(
'_'
);
radGridClickedRowIndex = Convert.ToInt32(indices[indices.Length - 1]);
UId = Request.Form[
"radGridClickedTableId"
];
GridTableView tableView;
switch
(e.Item.Text)
case
"Delete"
:
tableView =
this
.Page.FindControl(UId)
as
GridTableView;
RadGrid2.MasterTableView.PerformDelete(RadGrid2.Items[radGridClickedRowIndex]);
(tableView
GridTableView).PerformDelete(RadGrid2.Items[radGridClickedRowIndex]);
break
;
"Edit"
((tableView
GridTableView
GridTableView).Items[radGridClickedRowIndex]
GridDataItem).Edit =
true
tableView.Rebind();
"Add"
(RadGrid2.MasterTableView.Items[index]
GridDataItem).ChildItem.NestedTableViews[0].IsItemInserted =
}
RadGrid2_UpdateCommand(
sender, GridCommandEventArgs e)
//codefor updating the grid
RadGrid2_InsertCommand(
//codefor inserting