Version 19.4.47
The custom adapter functions perfectly for a DataGrid
When using this same adapter with kanban, data is loaded successfully, however drag and drop stops working.
If I disable the adapter and query the database as IEnumerable<T> and remove the custom adapter, drag and drop resumes.
I would like to keep the adapter as it has various system state information used to specifically load data context.
Applogies for incomplete sample... Its difficult to display the code as it has much of my specific entity framework rules in the customAdapter. Providing with sample may not compile, but if there is a working example that would be great.
<SfKanban KeyField="state_string" TValue="JobTask" >
<SfDataManager AdaptorInstance="@typeof(JobTasksAdapter)" Adaptor="Adaptors.CustomAdaptor" ></SfDataManager>
<KanbanSwimlaneSettings KeyField="@nameof(JobTask.responsible_staff_code)"></KanbanSwimlaneSettings>
@*<KanbanEvents ActionFailure="@ActionFailureHandler" TValue="JobTask"></KanbanEvents>*@
<KanbanColumns>
@{
var items = EnumHelper<TaskStateEnum>.ToDisplayDictionary();
foreach (var item in items)
{
if(item.Value != null)
{
<KanbanColumn HeaderText="@(item.Value)" KeyField="@(new List<string>() {item.Value })" AllowToggle="true" />
}
}
}
</KanbanColumns>
<KanbanCardSettings HeaderField="@(nameof(JobTask.task_no))" ContentField="@(nameof(JobTask.task))" GrabberField="@(nameof(JobTask.priority_colour))"> </KanbanCardSettings>
</SfKanban>