Hi,
I'm using Blazor Webassembly with .Net6 (6.0.10) and Syncfusion 20.3.0.56.
It seems that the toggle column doesn’t work when OnInitializedAsync is used. If I toggle a column, its title is toggled but not its content.
I attached an example and a print screen.
Do you accept it as an issue?
The problem can be avoided if the Kanban is displayed after initialization is complete. See “_initDone” boolean in my example.
Best regards,
François
Hi Vinitha,
Thanks for your answer.
I already knew how to avoid the issue with a boolean. In fact, I was writing to the Syncfusion Team to inform you of the issue so that you can correct it. Are you going to open a support ticket for this issue? Do you want me to open one?
Best regards,
François
Hi Vinitha,
On your answer, you wrote “We have validated the reported issue from our end and found that the reported issue occurs due to the delay added in the OnInitializedAsync function. During that delay, the Kanban scripts are not properly rendered and hence the issue occurred.”
It gave me the impression that the component rendering is not working properly. Shouldn’t the component render again if a column is added (even if it is after a delay)?
Regards,
François
<SfKanban TValue=Orders KeyField="Employee.Country" Query=_query AllowDragAndDrop=false> .... .... </SfKanban> @code { protected override async Task OnInitializedAsync() { await Task.Delay(1000).ConfigureAwait(false); _kanbanColumns= new List<KanbanColumn>(); _kanbanColumns.Add(new() { HeaderText = "UK", KeyField = new() { "UK" } }); _kanbanColumns.Add(new() { HeaderText = "USA", KeyField = new() { "USA" } }); } private List<KanbanColumn> _kanbanColumns = new List<KanbanColumn>() { new KanbanColumn(){ HeaderText= "", KeyField= new List<string>(){"" } }, }; } |
Hi Vinitha,
Thanks for your explanations. I accepted your first answer.
Regards,
François