Hi Otto,
We were not able to reproduce the issue while loading custom column with drop down data in Gantt with latest Essential studio version (13.4.0.53). We have also tried your code and it worked successfully for us. Can you please share us more details about the issue in which instance you are facing? Also can you please share us what type of data you are passing as drop down data? It will be helpful for us to provide appropriate solution for your query.
We have also prepared a sample based on this and you can find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/GanttSample379834948
If you still face any issue please get back to us by modifying this sample along with the replication procedure to reproduce it.
Regards,
Mahalakshmi K.
Hi Otto,
We have analyzed the code you have shared and found that there was a missing code to assign the new list the custom column which is returned from server. Please refer the below code example for details.
[CSHTML] var disciplinas = [{ ResourceId: "value1", ResourceName: "value1" }, { ResourceId: "value2", ResourceName: "value2" }];
function load(args) { var columns = this.getColumns(); columns.splice(6, 0, { field: "disciplina", mappingName: "disciplina", //Provide this mapping name headerText: "Disciplina", columnTemplate: true, editType: "dropdownedit", dropdownData: disciplinas, editParams: { fields: { text: "ResourceName", value: "ResourceName" } }, templateId: "columnTemplate", width: "160px" }); }
$.ajax({ type: "POST", url: "Gantt/loadGantt", success:(function (data, st) { if (st == "success") { var ganttObject = $("#Gantt").data("ejGantt"); var column = ganttObject.getColumns(); column[6].dropdownData = data[0].resource; ganttObject.setModel({ dataSource: data[0].Datasource, toolbarSettings: { showToolbar: false } }); } }), }) |
[CS] public ActionResult loadGantt(dataset list) { List<dataset> lists=new List<dataset>(); var dataSource = GanttDefaultData.GetData1(); var resource = ResourceList.GetResources1(); lists.Add(new dataset() { Datasource = dataSource, resource = resource,}); return Json(lists, JsonRequestBehavior.AllowGet);
} |
Here we have changed the custom column data and the Gantt data source which was returned from server using AJAX post method.
We have also prepared a sample based on this and you can find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/GanttSample-477677874
Regards,
Mahalakshmi K.
Hi Otto,
For the locale support we have introduced ej.globalize method to support all the culture related functionalities that are previously supported. The ej.globalize method works without any disruption even when used along with Globalize 0.9 to Globalize 1.0 versions.Also we provide en-US Locale text object, which gives user flexibility to convert it or create their own local language object with some simple modifications. You find all the modified supported Syncfusion locale files from the following Essential studio installed location.
File Location: C:\Program Files (x86)\Syncfusion\Essential Studio\13.4.0.53\JavaScript\assets-src\scripts\cultures
We have given brief description about this in our online help documentation, which can be found from the following link.
We have also prepared a sample in your locale language and you can find the sample under the following location.
Sample: http://www.syncfusion.com/downloads/support/directtrac/general/ze/GanttSample182275739
Regards,
Mahalakshmi K.
Hi Otto,
Thanks for the update.
Please let us know if you need further assistance on this.
Regards,
Mahalakshmi K.