Kanban Syncfusion.Blazor.ReflectionExtension.TryCreateInstance(System.Type, Boolean) Error

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.

View1.png

As soon as I click add button app crashes completely with error 

Syncfusion.Blazor.ReflectionExtension.TryCreateInstance(System.Type, Boolean)

View2.png

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!


Attachment: app_43c89194.zip

3 Replies

VJ Vinitha Jeyakumar Syncfusion Team March 18, 2022 02:05 PM UTC

Hi Buzz,


Currently, we are validating your reported query. we will update you the further details in two business days on or before 22nd March 2022.

Regards,
Vinitha



BU Buzz March 18, 2022 04:07 PM UTC

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:

Initial.png

After navigationg to some other page and returning back to kanban page:

AfterNavigation.png

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!



VJ Vinitha Jeyakumar Syncfusion Team March 22, 2022 02:12 PM UTC

Hi Buzz,


We have tried to reproduce the reported issue by dynamically binding data to the Kanban. but unfortunately we didn't face any issues as you reported. We have also prepared a sample and video illustration for your reference,



If still issue persists at your end. can you please share the following details,

  • Exact issue reproducing steps
  • Runnable issue replicating sample to validate on our end.
Regards,
Vinitha


Loader.
Up arrow icon