We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Customize Add and Edit Dialog

Thread ID:

Created:

Updated:

Platform:

Replies:

131776 Jul 26,2017 12:25 PM Jul 28,2017 09:16 AM ASP.NET Web Forms 3
loading
Tags: Gantt
Martin Sickel
Asked On July 26, 2017 12:25 PM

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

Jayakumar Duraisamy [Syncfusion]
Replied On July 27, 2017 09:06 AM

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 



Martin Sickel
Replied On July 27, 2017 09:25 AM

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


Martin


Jayakumar Duraisamy [Syncfusion]
Replied On July 28, 2017 09:16 AM

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


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;