The OrderId field for the Gantt tasks cannot be defined in its datasource using the UI for ASP.NET Core wrappers.
*for more details, please refer to ticket #1461758
Create a UI for ASP.NET Core project and try to initialize the Gantt component with a datasource configured similar to the following:
The marked "OrderID" definition is not a valid one in UI for ASP.NET Core
The datasource configuration provided above(or similar) should be valid for the Gantt component. The OrderID should be configurable using the ASP.NET Core wrappers.
The Core wrapper does not have a "Type" option:
.DependenciesDataSource(d => d
.Model(m =>
{
m.Id(f => f.DependencyID);
m.PredecessorId(f => f.PredecessorID);
m.SuccessorId(f => f.SuccessorID);
**m.Type(f => f.Type);**
})
.Read("Read_Dependencies", "Gantt")
.Create("Create_Dependency", "Gantt")
.Destroy("Destroy_Dependency", "Gantt")
)
Both the MVC wrapper and the jQuery widget allow to specify a field in the data that will be used as "type". Currently the Core wrapper does not allow specifying a field, and dependencies will work only if the data contains a field named "Type".
Gantt CurrentTimeMarker reappears after the Grid and Gantt tables are resized from the pane between them
After the resize the marker reappears
Currently, the Gantt allows full customization of its Editing popup:
https://docs.telerik.com/kendo-ui/api/javascript/ui/gantt/configuration/editable.template
But I need to a built-in way to include a new field input only in the Other tab view:
Workaround provided by support team:
.Events(e=>e.Edit("ganttEdit"))
<script>
function ganttEdit(e){
var tabstrip =
e.container.find(".k-gantt-edit-tabstrip").data().kendoTabStrip;
tabstrip.bind("activate",function(args){
if(args.item.textContent == "Other")
{
var otherForm = $(".k-gantt-form-other").data().kendoForm;
var newOptions = otherForm.options;
if(newOptions.items.length < 3)
{
newOptions.items.push({
"field": "Role",
"type": "string",
"defaultValue": ""
});
otherForm.setOptions(newOptions);
}
}
})
}
</script>
Hello,
I have a Gantt that only can have two levels. I guess drag&drop is the best and easiest way to do this (Is it a better solution like editing the order value directly in the TreeList area?)
I want to implement order change in the following way.
Could you send me any example of this behaviour?
Regards!
In a Razor Pages project, the Gantt's tasks are not binding if the taskID and parentID fields are strings.
This is a regression introduced in version 2020.3.915.
There are no tasks displayed in the Gantt.
The tasks should be displayed.
Is there a possibility to recognize when the user sorts a column in the GanttList?
Setting the sortable configuration for a Gantt column via TagHelpers does not enable sorting for the column.
Columns are not sorted.
When sorting is enabled for a column it should be sortable.
Set the sortable configuration for the desired columns after initialization of the Gantt component - REPL
$("document").ready(function(){
var gantt = $("#gantt").getKendoGantt();
var options = gantt.options;
options.autoBind = true;
options.columns[2].columns[0].sortable = true; //enable sorting for Start column
options.columns[2].columns[1].sortable = true; //enable sorting for End column
gantt.setOptions(options);
})
### Bug report
When the Gantt has a custom editor template, the Update request is not fired. When using the default editor template, the respective task is updated correctly.
The last version, where this scenario works as expected, is 2023.1.117.
### Reproduction of the problem
1) Define an editable Gantt that binds to remote data.
2) Set up a custom editor by using the editable.template option.
3) Try to edit a Task in the Gantt timeline table. The editable model is marked as "dirty", but the "save" event does not fire and the Update request does not trigger:
However, when using the default Gantt editor, the request triggers as expected.
A Dojo sample for reproduction: https://dojo.telerik.com/EyumevaD
### Expected/desired behavior
The tasks should be edited correctly when using a custom editor template.
### Environment
* **Kendo UI version: 2023.1.314
* **jQuery version: 3.4.1
* **Browser: [all]