how to use the dialog and headerTemplate configuration of the grid's editSettings object

Hello, I'm using the grid to display and I'm going through the props to editSettings settings.

However I am stuck in the use of some settings, headerTemplate, dialog.
I would like an example of how to configure both

In the template component, I have the form that edits the row data




1 Reply 1 reply marked as answer

SK Sujith Kumar Rajkumar Syncfusion Team March 23, 2021 05:56 AM UTC

Hi Ryan, 
 
Greetings from Syncfusion support. 
 
Based on the query we could understand that your requirement is to define the header template and enable resizing for the edit dialog in the Grid. This can be achieved as explained below, 
 
Edit dialog header template: 
 
The header template for the edit dialog can be defined as demonstrated in the below code snippet, 
 
editSettings: { 
    allowEditing: true, 
    mode: "Dialog", 
    headerTemplate: function () { 
        return { 
            template: Vue.component("header-template", { 
                template: `<div>Edit Data</div>`, 
            }), 
        }; 
    }, 
} 
 
Edit dialog properties: 
 
The edit dialog properties can be defined as demonstrated in the below code snippet, 
 
editSettings: { 
    allowEditing: true, 
    mode: "Dialog", 
    dialog: { params: { enableResize: true } } 
} 
 
We have prepared a sample based on this for your reference. You can find it below, 
 
 
Please get back to us if you require any further assistance. 
 
Regards, 
Sujith R 


Marked as answer
Loader.
Up arrow icon