Problems after update to 18.2.0.44

I've updated our Syncfusion version from 18.1.0.59 to 18.2.0.44 today and now we can't get our App to run again.
I've considered all the breaking changes in your release notes but can't find anything to point me in the right direction.
First of all NO component that was attached through @ref= in the Blazor page is available in OnAfterRenderAsync during firstRender. They are all NULL.


When I am finally able to get to a SfGrid it throws the following error:
Microsoft.JSInterop.JSException: Cannot read property 'visible' of undefined
TypeError: Cannot read property 'visible' of undefined
at e.findColumn (http://localhost:65044/_content/Syncfusion.Blazor/scripts/sf-grid-b58c64.min.js:1:38075)
at e.autoFitColumns (http://localhost:65044/_content/Syncfusion.Blazor/scripts/sf-grid-b58c64.min.js:1:34887)
at e.autoFit (http://localhost:65044/_content/Syncfusion.Blazor/scripts/sf-grid-b58c64.min.js:1:35074)
at t.contentReady (http://localhost:65044/_content/Syncfusion.Blazor/scripts/sf-grid-b58c64.min.js:1:110231)
at t.initModules (http://localhost:65044/_content/Syncfusion.Blazor/scripts/sf-grid-b58c64.min.js:1:104764)
at new t (http://localhost:65044/_content/Syncfusion.Blazor/scripts/sf-grid-b58c64.min.js:1:103711)
at Object.initialize (http://localhost:65044/_content/Syncfusion.Blazor/scripts/sf-grid-b58c64.min.js:1:117180)
at http://localhost:65044/_framework/blazor.server.js:8:31421
at new Promise ()
at e.beginInvokeJSFromDotNet (http://localhost:65044/_framework/blazor.server.js:8:31390)
at Microsoft.JSInterop.JSRuntime.InvokeWithDefaultCancellation[T](String identifier, Object[] args)
at Microsoft.JSInterop.JSRuntimeExtensions.InvokeVoidAsync(IJSRuntime jsRuntime, String identifier, Object[] args)
at Syncfusion.Blazor.SfBaseComponent.InvokeMethod(String methodName, Object[] methodParams)
at Syncfusion.Blazor.Grids.SfGrid`1.OnAfterScriptRendered()
at Syncfusion.Blazor.SfBaseComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.SfDataBoundComponent.OnAfterRenderAsync(Boolean firstRender)
at Syncfusion.Blazor.Grids.SfGrid`1.OnAfterRenderAsync(Boolean firstRender)
at Microsoft.AspNetCore.Components.RenderTree.Renderer.GetErrorHandledTask(Task taskToHandle)

What is missing here?

2 Replies 1 reply marked as answer

AO Andreas Oelke July 7, 2020 07:03 AM UTC

I've tracked down the error to the use of AutoFit="true" for a GridColumn using GridCommandColumns.
Like this:

        <GridColumn AutoFit="true" HeaderText="Header" HeaderTextAlign="TextAlign.Left" TextAlign="TextAlign.Center" Width="100">
            <GridCommandColumns>
                <GridCommandColumn Type="CommandButtonType.Edit" Title="Edit"></GridCommandColumn>
                <GridCommandColumn Type="CommandButtonType.Delete" Title="Delete"></GridCommandColumn>
                <GridCommandColumn Type="CommandButtonType.Save" Title="Save"></GridCommandColumn>
                <GridCommandColumn Type="CommandButtonType.Cancel" Title="Cancel"></GridCommandColumn>
            </GridCommandColumns>
        </GridColumn>

As soon as I add this I get the exception. If I remove the AutoFit property it works.


RS Renjith Singh Rajendran Syncfusion Team July 8, 2020 10:09 AM UTC

Hi Andreas,  

Greetings from Syncfusion support.  

We have confirmed it is a bug and logged a defect report “Exception occur while defining the autofit to GridCommandColumns”. Thank you for taking the time to report this issue and helping us improve our product. At Syncfusion, we are committed to fixing all validated defects (subject to technological feasibility and Product Development Life Cycle ) and including the defect fix in our upcoming  weekly patch release which is expected to be rolled out on or before 15th July 2020.  
 
You can now track the current status of your request, review the proposed resolution timeline, and contact us for any further inquiries through this link. 

Please get back to us if you need further assistance. 

Regards,
Renjith Singh Rajendran 


Marked as answer
Loader.
Up arrow icon