I hate having to ask this as I am sure it is something simple, but I wanted to post it while I continue to look for the answer.
I am using inlione edit on my grid, and have a Command Item Bar to allow adding a new row to the grid.
The problem I am having is that after hittiing the 'PerformInsert' and rebinding to the grid, the new row still shows at the bottom of the grid.
How can I make it go away once i hit 'Save' and rebind to the grid?
I am using inlione edit on my grid, and have a Command Item Bar to allow adding a new row to the grid.
The problem I am having is that after hittiing the 'PerformInsert' and rebinding to the grid, the new row still shows at the bottom of the grid.
How can I make it go away once i hit 'Save' and rebind to the grid?
protected void rgACWF1_ItemCommand(object source, Telerik.Web.UI.GridCommandEventArgs e) { GridEditableItem editedItem; switch (e.CommandName) { case "Update": editedItem = (GridEditableItem) rgACWF1.EditItems[0]; UpateACWFValue(editedItem, e); break; case "PerformInsert": editedItem = rgACWF1.MasterTableView.GetInsertItem(); orgManager.SaveACWF1Value(AddACWFValue(editedItem, e)); break; case "Delete": editedItem = (GridDataItem) e.Item; Guid acwfValueID = new Guid(editedItem.OwnerTableView.DataKeyValues[editedItem.ItemIndex]["ID"].ToString()); orgManager.DeleteAssetCriticalityWeightingFactorValue(acwfValueID); break; }
rgACWF1.Rebind(); }