Dear support,
I would like to use a data grid like this : https://ej2.syncfusion.com/vue/demos/#/material/grid/dialog-template.html
However in the example I can't see the dialog-temp.vue file.
So I have sevral questions :
1/ Would it be possible to get an online sample with the dialog-temp included ?
2/ How is it possible to force the width Dialog ?
3/ In the CRUD dataGrid I have something missing : Since all my datas won't be showed in the grid, I would like to have a "Read" action next to "add, update,delete", that would show another dialog in order to see every datas from the line that I would have selected .
Is it possible ?
4/ I have seen that when I double-click one line, it shows the dialog template in "Edition mode".
A => Is it possible to desactivate the double click event ?
B => if it is not possible, would it be possible to change the double click event to put right here another dialog template that would be my "read template " dialog ?
5/ When , for instance, I click on the "Add" action and click the "save" button, where in the TemplateDialog will I have to put my code to save my datas ?
I can't see where the "save" event is triggered.
6/ Then I will create a new item, How is it possible to refresh data grid when the dialog close with all brand news datas from my API including the item I have just created ?
Would it be possible to have an online sample for all of these 4 questions ?
Thank you very much in advance :)
Ps : I have tried to create two files : List.vue with a grid with, and Create.Vue the Dialog template file, but when I click on the "save" button from the dialog it adds an empty line in the datagrid. Here is my code in a zipfile.
Moreover I don't know how to bind the datas when I am on the edit mode, knowing that my datas come from the props" employeeList" from the list.Vue file
|
actionComplete(args) {
if (args.requestType === "beginEdit") {
var dialog = document.getElementsByClassName("e-edit-dialog")[0].ej2_instances[0];
dialog.width = "400px";
}
}
|