Skip to content

Infragistics Community Forum / Web / Ignite UI for Blazor / Update to latest Version 21.2.52 broke IgbDataGrid

Update to latest Version 21.2.52 broke IgbDataGrid

New Discussion
Karl Rosenberger
Karl Rosenberger asked on Mar 31, 2022 2:24 PM

After update to Version 21.2.52 can't load IgbDataGrid.

The same source code with a previous Version 21.2.1 works without problems.

Error stack trace:

Error: System.InvalidOperationException: Unable to set property 'DataSource' on object of type 'IgniteUI.Blazor.Controls.IgbDataGrid'. The error was: Object reference not set to an instance of an object.

 ---> System.NullReferenceException: Object reference not set to an instance of an object.

   at IgniteUI.Blazor.Controls.JsonDataSourceItem.GetDateCacheAsJson(Utf8JsonWriter writer, String parentKey)

   at IgniteUI.Blazor.Controls.JsonDataSource.GetDateCacheAsJson()

   at IgniteUI.Blazor.Controls.BaseRendererControl.OnRefChanged(String refName, Object refValue)

   at IgniteUI.Blazor.Controls.DataSourceManager.OnRefChanged(String path, Object data)

   at IgniteUI.Blazor.Controls.BaseRendererControl.OnRefChanged(String propertyName, Object oldValue, Object newValue, Boolean isScript, Boolean isElement, Action`3 refChanged)

   at IgniteUI.Blazor.Controls.BaseRendererElement.OnRefChanged(String propertyName, Object oldValue, Object newValue, Boolean isScript, Boolean isElement, Action`3 refChanged)

   at IgniteUI.Blazor.Controls.BaseRendererElement.FlushRefs()

   at IgniteUI.Blazor.Controls.BaseRendererElement.set_Parent(Object value)

   at IgniteUI.Blazor.Controls.IgbDataGrid.set_DataSource(Object value)

   at Microsoft.AspNetCore.Components.Reflection.PropertySetter.CallPropertySetter[TTarget,TValue](Action`2 setter, Object target, Object value)

   at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.g__SetProperty|2_0(Object target, PropertySetter writer, String parameterName, Object value)

   --- End of inner exception stack trace ---

   at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.g__SetProperty|2_0(Object target, PropertySetter writer, String parameterName, Object value)

   at Microsoft.AspNetCore.Components.Reflection.ComponentProperties.SetProperties(ParameterView& parameters, Object target)

   at Microsoft.AspNetCore.Components.ParameterView.SetParameterProperties(Object target)

   at Microsoft.AspNetCore.Components.ComponentBase.SetParametersAsync(ParameterView parameters)

   at Microsoft.AspNetCore.Components.Rendering.ComponentState.SetDirectParameters(ParameterView parameters)

   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewComponentFrame(DiffContext& diffContext, Int32 frameIndex)

   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InitializeNewSubtree(DiffContext& diffContext, Int32 frameIndex)

   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.InsertNewFrame(DiffContext& diffContext, Int32 newFrameIndex)

   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl)

   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForFramesWithSameSequence(DiffContext& diffContext, Int32 oldFrameIndex, Int32 newFrameIndex)

   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.AppendDiffEntriesForRange(DiffContext& diffContext, Int32 oldStartIndex, Int32 oldEndIndexExcl, Int32 newStartIndex, Int32 newEndIndexExcl)

   at Microsoft.AspNetCore.Components.RenderTree.RenderTreeDiffBuilder.ComputeDiff(Renderer renderer, RenderBatchBuilder batchBuilder, Int32 componentId, ArrayRange`1 oldTree, ArrayRange`1 newTree)

   at Microsoft.AspNetCore.Components.Rendering.ComponentState.RenderIntoBatch(RenderBatchBuilder batchBuilder, RenderFragment renderFragment)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.RenderInExistingBatch(RenderQueueEntry renderQueueEntry)

   at Microsoft.AspNetCore.Components.RenderTree.Renderer.ProcessRenderQueue()

Sign In to post a reply

Replies

  • 0
    Andrew Goldenbaum
    Andrew Goldenbaum answered on Mar 30, 2022 3:42 PM

    Hello Karl,

    I have been investigating into the behavior you are seeing, but I am unable to reproduce this at the moment. On my end, the IgbDataGrid is working normally against 21.2.52.

    My tests were made against our samples browser that has been updated to version 21.2.52 of the Ignite UI for Blazor toolset. I am attaching a sample project from that browser that binds the data source to a local source. If you could please modify this sample or provide an isolated one of your own that reproduces the behavior you are seeing, I will gladly take a look.

    Please let me know if you have any other questions or concerns on this matter.

    binding_2D00_local_2D00_data.zip

    • 0
      Karl Rosenberger
      Karl Rosenberger answered on Mar 30, 2022 9:53 PM

      Thanks Andrew, your example works for me too.

      In my project I'm using Blazor.Server and .NET5.0 Maybe it's because of the configuration.

      • 0
        Andrew Goldenbaum
        Andrew Goldenbaum answered on Mar 31, 2022 2:24 PM

        Hello Karl,

        I am attaching a Blazor Server application running against .NET 5 and version 21.2.52 of our controls. This sample is also working normally on my end. Do you have any sort of special configuration going on with the sample that you are using?

        Please let me know if you have any other questions or concerns on this matter.

        BlazorGridServerTest.zip

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Karl Rosenberger
Favorites
0
Replies
3
Created On
Mar 31, 2022
Last Post
4 years, 5 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Mar 31, 2022 2:24 PM

Last activity on

Mar 31, 2022 2:24 PM