Customize Add and Edit Dialog

Hi

I would like to hide some fields on the Add and Edit Dialog, I can see that there is an

<EditDialogFields> </EditDialogFields> 

same is existing for the Add Dialog, how can I use it, I cant find anything in the documents.

Can you advise how to use it please.

Martin

3 Replies

JD Jayakumar Duraisamy Syncfusion Team July 27, 2017 01:06 PM UTC

Hi Martin, 
In Gantt, we can display only the required data source fields in the add/edit dialogs by using the AddDialogFields and EditDialogFields properties. 
Please refer following code snippet, 
 
<ej:Gantt ID="Gantt" 
//...> 
<AddDialogFields> 
                <ej:AddDialogField Field="TaskId" EditType="stringEdit" /> 
                <ej:AddDialogField Field="TaskName" EditType="stringEdit" /> 
                <ej:AddDialogField Field="StartDate" EditType="DatePicker" /> 
                <ej:AddDialogField Field="EndDate" EditType="DatePicker" /> 
            </AddDialogFields>       
 
              <EditDialogFields> 
                <ej:EditDialogField Field="TaskId" EditType="stringEdit" /> 
                <ej:EditDialogField Field="TaskName" EditType="stringEdit" /> 
               <ej:EditDialogField Field="StartDate" EditType="DatePicker" /> 
                <ej:EditDialogField Field="EndDate" EditType="DatePicker" /> 
            </EditDialogFields>   
</ej:Gantt>     
 
We have also prepared a sample for your reference. Please find the sample in the below location, 
Please let us know, if you require any other assistance. 
Regards, 
Jayakumar D 




MS Martin Sickel July 27, 2017 01:25 PM UTC

Thank you very much, would be great if you can add it as well to the documentation


Martin



JD Jayakumar Duraisamy Syncfusion Team July 28, 2017 01:16 PM UTC

Hi Martin, 
Thanks for the update, 
We will include in our documentation as soon as possible. 
Regards, 
Jayakumar D 


Loader.
Up arrow icon