EditDialogFieldSettings or AddDialogFieldSettings custom fields on gantt dialog

https://ej2.syncfusion.com/vue/documentation/api/gantt/addDialogFieldSettings/#adddialogfieldsettings

I'd like know how create custom fields on dialog gantt.

For the example I have 3 fields like this:

But only display one, how i can solve this also define type data of each field.
Tks


editDialogFields: [
     {
type: 'Custom',
headerText: 'Otros',
fields: ['user', 'status', 'weight']
}
]

1 Reply

PP Pooja Priya Krishna Moorthy Syncfusion Team April 23, 2020 11:09 AM UTC

Hi Rendson, 
Thanks for contacting Syncfusion support. 
To render custom fields in add/edit dialog, we need to define the custom fields in the columns property. Please find the below code example. 

<template> 
   <ejs-gantt ref='gantt' id="GanttContainer"   
   //... 
    :columns= "columns"> 
   </ejs-gantt> 
</template> 
export default Vue.extend({ 
  data: function() { 
      return{         
            columns: [ 
              //... 
                {field: 'user'}, 
                {field: 'status'}, 
                {field: 'weight'},     
            ], 
      }; 
  }, 
}); 

Please refer the below documentation and sample link. 

Regards, 
Pooja K. 


Loader.
Up arrow icon