Kanban custom swimlanesort not working

I would like to sort with SwimlaneSorting event of Kanban table, but even if I change the order of the rows it does not change in Syncfuson Version="22.2.11".

I will attach my example.


Attachment: blazorkanbanswimlanesortingmain_fbea9dc3.rar

2 Replies 1 reply marked as answer

NK Nandor Kalmanchey September 26, 2023 08:43 AM UTC

I would have an other question abot kanban table. Is it possible to render swimlanes with closed rows by default?

Thanks your answare!



VJ Vinitha Jeyakumar Syncfusion Team September 26, 2023 09:39 AM UTC

Hi Nandor,

Query 1. "I would like to sort with SwimlaneSorting event of Kanban table, but even if I change the order of the rows it does not change in Syncfuson Version="22.2.11" "

We have internally resolved the reported issue of "swimlaneSorting not working properly in Kanban" with our release version 23.1.26. So please upgrade your package to the latest to resolve the issue from your end.

Query 2. "Is it possible to render swimlanes with closed rows by default?"

Your requirement to collapse all the swimlanes by default can be achieved by using the JsInterop in Blazor. Please check the code and sample below,

Code snippet:
    
    protected override async Task OnAfterRenderAsync(bool firstRender)
    {
        if (firstRender)
        {           
            await jsRuntime.InvokeAsync<object>("CalledJSFunctionWithParameter");  
        }
    }
Layout.cshtml:
function CalledJSFunctionWithParameter() {  
            for (var i = 0; i < document.querySelectorAll('.e-swimlane-header .e-item-count').length; i++) {
                     document.querySelectorAll('.e-swimlane-header')[i].querySelector('.e-icons').click();
            }
        }  

Regards,
Vinitha

Marked as answer
Loader.
Up arrow icon