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
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)
The following null reference exception occurs inside the CanLoadMoreItems method
Object reference not set to an instance of an object
at Telerik.Maui.Controls.DataGrid.GridModel.CanLoadMoreItems()
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 the cells are measured a NullReferenceException is thrown:
Telerik.Maui.Controls.DataGrid.DataGridTextCellArranger.PrepareTextPaintable(GridCellModel model, TextPaintable textPaintable)Description:
On iOS and MacCatalyst, when a RadButton is placed inside a RadToggleButton's ContentTemplate and bound to a command, the command does not execute when the nested button is tapped. The same setup works as expected on Windows and Android.
Workaround:
Override the toggle button's handler to adjust gesture recognizer behavior so that touches on the nested UIButton are not intercepted by the parent RadToggleButton.
private void Element_OnHandlerChanged(object? sender, EventArgs e)
{
#if IOS || MACCATALYST
var button = sender as RadToggleButton;
var handler = button!.Handler;
if (handler != null && handler.PlatformView is UIKit.UIView platformView)
{
this.Dispatcher.Dispatch(() =>
{
var recognizer = platformView.GestureRecognizers!.Last();
recognizer.ShouldReceiveTouch = (gestureRecognizer, touch) =>
{
var view = touch.View;
if (view is UIButton)
{
return false;
}
return true;
};
});
}
#endif
}
Using latest telerik version with .net9. Following is applying and showing perfect background color of
selected items but its not working in android.
Kindly provide the fix
<telerik:RadComboBox.SelectedItemTemplate>
<DataTemplate>
<telerik:RadBorder BackgroundColor="#CACACA">
<VerticalStackLayout>
<Label Text="{Binding EmailId}"
FontSize="16"
FontAttributes="Bold"
Padding="18,14"
TextColor="{StaticResource SharkColor}"/>
</VerticalStackLayout>
</telerik:RadBorder>
</DataTemplate>
</telerik:RadComboBox.SelectedItemTemplate>