Skip to content

Commit 96d8b4d

Browse files
xristianstefanovdimodi
authored andcommitted
chore(Grid): remove delete action as per last comment
1 parent abd7228 commit 96d8b4d

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

knowledge-base/grid-loader-during-contextmenu-actions.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -154,8 +154,7 @@ To display a spinner during delayed operations initiated from a ContextMenu in a
154154
MenuItems = new List<MenuItem>()
155155
{
156156
new MenuItem(){ Text = "Select", Icon = SvgIcon.CheckboxChecked, CommandName="ToggleSelect" },
157-
new MenuItem(){ Text = "Edit", Icon = SvgIcon.Pencil, CommandName="BeginEdit" },
158-
new MenuItem(){ Text = "Delete", Icon = SvgIcon.Trash, Action = DeleteItem }
157+
new MenuItem(){ Text = "Edit", Icon = SvgIcon.Pencil, CommandName="BeginEdit" }
159158
};
160159
161160
GridData = new ObservableCollection<SampleData>();
@@ -180,13 +179,6 @@ To display a spinner during delayed operations initiated from a ContextMenu in a
180179
GridData.Insert(0, argsItem);
181180
}
182181
183-
private void DeleteItem()
184-
{
185-
var argsItem = SelectedPerson;
186-
187-
GridData.Remove(argsItem);
188-
}
189-
190182
private async Task UpdateHandler(GridCommandEventArgs args)
191183
{
192184
var argsItem = args.Item as SampleData;

0 commit comments

Comments
 (0)