I have the following in a Kendo UI MVC Core Grid to declare that a popup shows when adding or inserting a record:
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("Template").Window(x => x.Width(500).Height(500)))
That works to bring up the editor template popup which is stored in the Shared/EditorTemplates folder. And validation is working as well as the Insert or Update methods on the controller are working.
Yet the when I click the +ADD NEW RECORD button on the Toolbar when the dialog shows it always shows as an update action. The title bar displays "Edit" and the button displays "Update". This is happening in another grid as well. Shouldn't it display "Insert" and "Save" or "Insert" and "Add" when the +ADD NEW RECORD button on the Toolbar is clicked? Why always "Edit"?
I also need to know if it is in Insert or Edit mode at run-time because I am doing a lookup using Ajax when the user enters a value to check for duplicates on that particular field.
Please advise.
.Editable(editable => editable.Mode(GridEditMode.PopUp).TemplateName("Template").Window(x => x.Width(500).Height(500)))
That works to bring up the editor template popup which is stored in the Shared/EditorTemplates folder. And validation is working as well as the Insert or Update methods on the controller are working.
Yet the when I click the +ADD NEW RECORD button on the Toolbar when the dialog shows it always shows as an update action. The title bar displays "Edit" and the button displays "Update". This is happening in another grid as well. Shouldn't it display "Insert" and "Save" or "Insert" and "Add" when the +ADD NEW RECORD button on the Toolbar is clicked? Why always "Edit"?
I also need to know if it is in Insert or Edit mode at run-time because I am doing a lookup using Ajax when the user enters a value to check for duplicates on that particular field.
Please advise.