Hi,
I have a normal grid and I have it overloaded to allows edit and delete.
.EditSettings(edit =>
{
edit.AllowDeleting().AllowEditing().EditMode(EditMode.DialogTemplate).TitleColumn("Name").DialogEditorTemplateID("#templateMaintenance");
})
I notice that the grid automatically add the edit and delete option in the context menu.
I really don't want those options to be shown there because I have another delete option overloaded. I only need the options that appear in the toolbar.
.ToolbarSettings(toolbar =>
{
toolbar.ShowToolbar().ToolbarItems(items =>
{
items.AddTool(ToolBarItems.Edit);
items.AddTool(ToolBarItems.Delete);
items.AddTool(ToolBarItems.Update);
items.AddTool(ToolBarItems.Cancel);
items.AddTool(ToolBarItems.PrintGrid);
items.AddTool(ToolBarItems.ExcelExport);
items.AddTool(ToolBarItems.WordExport);
items.AddTool(ToolBarItems.PdfExport);
});
})
Also, If I leave those options and begin to test it I have some issues with the delete and edit in the context menu.
It works erratically. Sometimes even If I select 3, only remove one or even worst the next iteration broke the nodetype of the grid.
The edit option also does not charge anything in the args.data.
Please check this error.
Uncaught TypeError: Cannot read property 'nodeType' of undefined(…)attr @ jquery.js:6956
n.access @ jquery.js:3500
attr @ jquery.js:6943
selectRows @ ej.web.all.min.js:10
contextOpenMaintenance @ Default:1232
_trigger @ ej.web.all.min.js:10
_menu @ ej.web.all.min.js:10
f @ jquery.js:512
_trigger @ ej.web.all.min.js:10
showContextMenu @ ej.web.all.min.js:10
_ContextMenuHandler @ ej.web.all.min.js:10
dispatch @ jquery.js:4430
r.handle @ jquery.js:4116
Could you please help disabling that extra context menu options.
Kind regards,
Juan