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. Image for the cookie policy date
close icon

Task Edit stops working with custom columns

Hi everyone,

I am new to Syncfusion and am currently working on a project using the Gantt component with ASP.Net MVC 4.

Everything is working fine until I try to add a custom culumn, I can still add a new task, but not edit any.

I attached the .cshtml and controller files for reference, I hope someone can give me a hint what is going wrong here.

Bast regards,
Bastian

Attachment: GanttCode_964826aa.zip

3 Replies

JD Jayakumar Duraisamy Syncfusion Team April 7, 2017 04:29 PM UTC

Hi Bastian, 
 
Thanks for contacting Syncfusion support. 
 
We have analyzed your given source and found that there is missing of column editType properties in the custom column used with column template support. We must provide editType for each column once we have enabled edit support. 
Please refer following code snippet, 
var cost = { 
                 field: "Cost", 
                 headerText: "Total Cost($)", 
                 columnTemplate: true, 
                 templateId: "columnTemplate", 
                 width: "120px", 
                 editType:"stringedit" 
        }; 
We have also prepared a sample based on this and please find the sample location, 
Please let us know if you require further assistance on this. 
Regards, 
Jayakumar D 



BN Bastian Noffer April 25, 2017 01:52 PM UTC

Thanks, I totally missed that. Its working now!


JD Jayakumar Duraisamy Syncfusion Team April 26, 2017 04:20 AM UTC

Hi Bastian, 
 
We are glad that your requirement has been met. Please let us know if you need any other assistance. 
Regards, 
Jayakumar D 


Loader.
Live Chat Icon For mobile
Up arrow icon