Good morning I am trying to make a change in the edit settings of the grid for the following case:
-When creating a new record I want to display the edition in Dialog Mode with a template, while I want to do the editing on the grid, that is, the normal edition mode.
I have been performing several tests, I have changed the editing mode in the actionBegin of the grid, but the first time I press the edit button it passes me through the actionComplete and generates the dialog.
The second time I click edit if it does it in the Grid itself but it does not generate the input fields correctly.
My code JS:
function actionBegin(args) {
var gridLineas = document.querySelector('#Grid-Lineas').ej2_instances[0];
if (args.requestType === 'beginEdit') {
gridLineas.editSettings.mode = 'Normal';
}
else if (args.requestType === 'add') {
gridLineas.editSettings = { mode: 'Dialog', template :'#dialogtemplate' };
}
}