Null reference exception occurs with maui 10.0.90
Just add the datagrid definition in xaml or code behind and exception occurs.
Stack-trace:
at Microsoft.Maui.Controls.BindableObject.ApplyBindings(Boolean fromBindingContextChanged)
at Microsoft.Maui.Controls.BindableObject.SetInheritedBindingContext(BindableObject bindable, Object value)
at Microsoft.Maui.Controls.Element.SetChildInheritedBindingContext(Element child, Object context)
at Microsoft.Maui.Controls.TemplatedPage.SetChildInheritedBindingContext(Element child, Object context)
at Microsoft.Maui.Controls.Element.SetLogicalChildBindingContext(BindableObject child, Object bc)
at Microsoft.Maui.Controls.BindableObjectExtensions.PropagateBindingContext[T](BindableObject self, IEnumerable`1 children, Action`2 setChildBindingContext)
at Microsoft.Maui.Controls.Element.OnBindingContextChanged()
at Microsoft.Maui.Controls.VisualElement.OnBindingContextChanged()
at Microsoft.Maui.Controls.Page.OnBindingContextChanged()
at Microsoft.Maui.Controls.ContentPage.OnBindingContextChanged()
at Microsoft.Maui.Controls.BindableObject.BindingContextPropertyChanged(BindableObject bindable, Object oldvalue, Object newvalue)
at Microsoft.Maui.Controls.BindableObject.OnBindablePropertySet(BindableProperty property, Object original, Object value, Boolean didChange, Boolean willFirePropertyChanged)
at Microsoft.Maui.Controls.Element.OnBindablePropertySet(BindableProperty property, Object original, Object value, Boolean changed, Boolean willFirePropertyChanged)
at Microsoft.Maui.Controls.BindableObject.SetValueActual(BindableProperty property, BindablePropertyContext context, Object value, Boolean currentlyApplying, SetValueFlags attributes, SetterSpecificity specificity, Boolean silent)
at Microsoft.Maui.Controls.BindableObject.SetValueCore(BindableProperty property, Object value, SetValueFlags attributes, SetValuePrivateFlags privateAttributes, SetterSpecificity specificity)
at Microsoft.Maui.Controls.BindableObject.SetValue(BindableProperty property, Object value)
at Microsoft.Maui.Controls.BindableObject.set_BindingContext(Object value)
Provide an option to drag a cell content and drop it to another cell for both default and skia render modes
Makes this feature also available for skia cell renderer
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)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()
Provide an option to set explicit style to the grouping panel, for example expose GroupingPanelStyle property.
Currently, the option is using an implicit style targeting the DataGridGroupingPanel
<Style TargetType="telerik:DataGridGroupingPanel">
<Setter Property="BackgroundColor" Value="Red"/>
<Setter Property="HeaderText" Value="Hello to group"/>
<Setter Property="CornerRadius" Value="10"/>
<Setter Property="BorderThickness" Value="2"/>
<Setter Property="BorderColor" Value="Blue"/>
</Style>
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.
when changing property value programmatically, the row background style selector does not apply. You need to scroll the data or resize the control, then the change applies.
The selector works when editing the datagrid value trough the UI, but does not work when changing the value programmatically.
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.