Unplanned
Last Updated: 17 Sep 2025 14:58 by Teddy
Teddy
Created on: 17 Sep 2025 14:58
Category: DataGrid
Type: Bug Report
0
DataGrid: NullReferenceException is thrown during the measure phase of the cells

When the cells are measured a NullReferenceException is thrown:

Telerik.Maui.Controls.DataGrid.DataGridTextCellArranger.PrepareTextPaintable(GridCellModel model, TextPaintable textPaintable)
Telerik.Maui.Controls.DataGrid.DataGridTextCellArranger.PrepareContainerForItemOverride(GridCellModel model)
Telerik.Maui.Controls.DataGrid.DataGridCellArranger.PrepareContainerForItem(GridCellModel model)
Telerik.Maui.Controls.DataGrid.DataGridColumn.IDataGridColumnDefinition.PrepareContainerForItem(GridCellModel model)
Telerik.Maui.Controls.DataGrid.CellModelGenerator.PrepareModelForItem(GridCellModel decorator)
Telerik.Maui.Controls.DataGrid.CellsController<GridCellModel>.GenerateCellsForRow(IItemInfoNode rowModel, Int32 rowSlot)
Telerik.Maui.Controls.DataGrid.GridModel.ITable.GenerateCellsForRow(Int32 rowSlot, Double largestRowElementHeight, IItemInfoNode rowDecorator, Boolean isFrozen)
Telerik.Maui.Controls.DataGrid.NodePool<GridRowModel, RowGenerationContext>.GenerateCellsForLine(Int32 slot, Double largestLength, GridRowModel lastElement)
Telerik.Maui.Controls.DataGrid.NodePool<GridRowModel, RowGenerationContext>.GenerateModelsForInfos(IList<> itemInfos, ModelGenerationContext modelGenerationContext, MeasureContext measureContext)
Telerik.Maui.Controls.DataGrid.NodePool<GridRowModel, RowGenerationContext>.MeasureForward(MeasureContext& context)
Telerik.Maui.Controls.DataGrid.NodePool<GridRowModel, RowGenerationContext>.MeasureVertically(RadSize availableSize, Double offset, Double verticalBuffer)
Telerik.Maui.Controls.DataGrid.NodePool<GridRowModel, RowGenerationContext>.OnMeasure(RadSize availableSize, Double offset, Double verticalBuffer)
Telerik.Maui.Controls.DataGrid.GridModel.MeasureFrozenCells(RadSize availableSize)
Telerik.Maui.Controls.DataGrid.DataGridContentLayout.Measure(Double widthConstraint, Double heightConstraint)
Telerik.Maui.Controls.RadLayoutManager.Measure(Double widthConstraint, Double heightConstraint)
Microsoft.Maui.Controls.Layout.CrossPlatformMeasure(Double widthConstraint, Double heightConstraint)
Microsoft.Maui.Platform.MauiView.CrossPlatformMeasure(Double widthConstraint, Double heightConstraint)
Microsoft.Maui.Platform.MauiView.SizeThatFits(CGSize size)
Telerik.Maui.ScrollView.ScrollViewContent.TryGetDesiredSize(UIView view, CGSize availableSize)
Telerik.Maui.ScrollView.ScrollViewContent.SizeThatFits(CGSize size)
Telerik.Maui.ScrollView.ScrollViewContent.ValidateMeasure()
Telerik.Maui.ScrollView.ScrollViewContent.LayoutSubviews()
Telerik.Maui.ScrollView.ScrollViewContent.__Registrar_Callbacks__.callback_1209_Telerik_Maui_ScrollView_ScrollViewContent_LayoutSubviews(IntPtr pobj, IntPtr sel, IntPtr* exception_gchandle)
--- End of stack trace from previous location ---
0 comments