Hello,
it would be a very useful information when subscribing to the DataBindingComplete Command of a DataGrid to know whether for example a filter, sort, grouping had changed.
Currently, it is an internal Property
Regards
I received the following stack traces when using aggregates and
Exception Message:
Object reference not set to an instance of an object
Exception Stack:
at Telerik.Maui.Data.ParallelDataEngine.Telerik.Maui.Data.IDataEngine.RebuildAggregatesForItem(Object item, String propertyName)
at Telerik.Maui.Data.LocalDataSourceProvider.ProcessPropertyChangedOverride(Object sender, PropertyChangedEventArgs args)
at Telerik.Maui.Data.LocalDataSourceProvider.DataView_ItemPropertyChanged(Object sender, PropertyChangedEventArgs e)
at Telerik.Maui.Data.EnumerableDataSourceView.Telerik.Maui.IWeakEventListener.ReceiveEvent(Object sender, Object args)
at Fmr.Sirius.ComponentModel.ObservableObject.FirePropertyChanged(IEnumerable`1 propertyChanges)
at System.Reactive.AnonymousSafeObserver`1.OnNext(T value)
at System.Reactive.Concurrency.AsyncLock.Wait(Object state, Delegate delegate, Action`2 action)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.TimerQueueTimer.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
Exception.Stack 2:
at Telerik.Maui.Data.ParallelDataEngine.Telerik.Maui.Data.IDataEngine.RebuildAggregatesForItem(Object item, String propertyName)
at Telerik.Maui.Data.LocalDataSourceProvider.ProcessPropertyChangedOverride(Object sender, PropertyChangedEventArgs args)
at Telerik.Maui.Data.LocalDataSourceProvider.DataView_ItemPropertyChanged(Object sender, PropertyChangedEventArgs e)
at Telerik.Maui.Data.EnumerableDataSourceView.Telerik.Maui.IWeakEventListener.ReceiveEvent(Object sender, Object args)
at Fmr.Sirius.ComponentModel.ObservableObject.FirePropertyChanged(IEnumerable`1 propertyChanges)
at System.Reactive.AnonymousSafeObserver`1.OnNext(T value)
at System.Reactive.Linq.ObservableImpl.Sample`1._.Tick()
at System.Reactive.Concurrency.DefaultScheduler.PeriodicallyScheduledWorkItem`1.<>c.<Tick>b__5_0(PeriodicallyScheduledWorkItem`1 closureWorkItem)
at System.Reactive.Concurrency.AsyncLock.Wait(Object state, Delegate delegate, Action`2 action)
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.TimerQueueTimer.System.Threading.IThreadPoolWorkItem.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback()
A NullReferenceException may occur during the DataGrid cell measure phase. The issue appears to happen when the cells are being generated or prepared for layout:
at Telerik.Maui.Controls.DataGrid.CellsController`1.GenerateCellsForRow(IItemInfoNode rowModel, Int32 rowSlot)when adding items to the collection bound to the datagrid ItemsSource, the empty template remains visible.
this was working with 11.1.0 version
having a datagrid with columns and setting the celleditor style to text column, then setting SelectionOnFocus to some value, then enter the edit mode, for example select all or cursor at start do not apply., always cursor at end applies.
The behavior also happens when using CellEditTemplate and there is RadEntry in it. The SelectionOnFocus does not apply.
Keyboard navigation to editable cells does not retain text selection. Having the SelectionOnFocus to “SelectAll” and the cell is in edit mode, the text gets selected
pressing enter or tab key, the text in the next cell is not selected.
I have tried implicit style, cell edit templates, same result, text gets deselected.
When the numerical column enters edit mode, in order to display the keyboard you need to tap one more time.
Outside of the datagrid, when the numeric input control gets focused, the keyboard appears.
Null reference exception occurs when measuring the cells container:
at Telerik.Maui.Controls.DataGrid.DataGridTextCellArranger.PrepareContainerForItemOverride(GridCellModel model)
at Telerik.Maui.Controls.DataGrid.DataGridNumericalCellArranger.PrepareContainerForItemOverride(GridCellModel model)
at Telerik.Maui.Controls.DataGrid.DataGridColumn.Telerik.Maui.Controls.DataGrid.IDataGridColumnDefinition.PrepareContainerForItem(GridCellModel model)
at Telerik.Maui.Controls.DataGrid.CellsController`1.GenerateCellsForRow(IItemInfoNode rowModel, Int32 rowSlot)
at Telerik.Maui.Controls.DataGrid.NodePool`2.GenerateModelsForInfos(IList`1 itemInfos, ModelGenerationContext modelGenerationContext, MeasureContext measureContext)
at Telerik.Maui.Controls.DataGrid.NodePool`2.MeasureForward(MeasureContext& context)
at Telerik.Maui.Controls.DataGrid.NodePool`2.MeasureVertically(RadSize availableSize, Double offset, Double verticalBuffer)
at Telerik.Maui.Controls.DataGrid.NodePool`2.OnMeasure(RadSize availableSize, Double offset, Double verticalBuffer)
at Telerik.Maui.Controls.DataGrid.GridModel.MeasureCells(RadSize availableSize)
at Telerik.Maui.Controls.DataGrid.DataGridContentLayout.Measure(Double widthConstraint, Double heightConstraint)
at Microsoft.Maui.Platform.MauiPanel.MeasureOverride(Size availableSize)
at ABI.Microsoft.UI.Xaml.IFrameworkElementOverrides.Do_Abi_MeasureOverride_0(IntPtr thisPtr, Size availableSize, Size* result)
When setting GroupAggregatesAlignment NextToHeader and the column size mode is stretch or auto, the aggregates text in the group header is misaligned, part of the text enters in next column when data changes.
when the column is resized or datagrid is scrolled, the aggregates are aligned as expected