Dear team,
I have issue with Kanban control trying to make sort of light project management app. App is suppose to use two tables. One for project and another for project tasks. It is working until I try to add card into column.
As soon as I click add button app crashes completely with error
Syncfusion.Blazor.ReflectionExtension.TryCreateInstance(System.Type, Boolean)
I have tried few things I found on net as possible solutions but nothing helped.
Could you please check and gave some hint how to fix. Project attached.
Thanks!
Dear team,
Nevermind. Figured out by myself using solution from topic Kanban Swimlane Foreign Key. There are another issues with Kanban still.
One of most weird is if I go another app page and then go back kanban page, kanban shows 0 result.
So on initial load:
After navigationg to some other page and returning back to kanban page:
Code on kanban page is changed to this:
private List<Project> ProjectList = new List<Project>();
private List<ProjectTask> TaskList = new List<ProjectTask>();
private List<Tasks> AllTasks = new List<Tasks>() { };
protected override async Task OnInitializedAsync()
{
ProjectList = await projectService.GetProjects();
TaskList = await projectService.GetTasks();
var cards = TaskList.GroupJoin(ProjectList,
c => c.ProjectId,
b => b.ProjectId,
(c, b) => new Tasks
{
ProjectId = c.ProjectId,
ProjectTaskId = b.Select(x => x.ProjectId).FirstOrDefault(),
ProjectName = b.Select(x => x.ProjectName).FirstOrDefault(),
DateCreated = b.Select(x => x.DateCreated).FirstOrDefault(),
CreatedByuser = b.Select(x => x.CreatedByUser).FirstOrDefault(),
TaskName = c.TaskName,
TaskDetails = c.TaskDetails,
Status = c.Status,
DateAdded = c.DateAdded,
DateChanged = c.DateChanged
}).ToList();
AllTasks = cards;
await Task.Yield();
await InvokeAsync(StateHasChanged);
await kanban.RefreshAsync();
}
Even full page reload does not help.
Thanks!