The DataGrid will crash when there is a bunch of CollectionChanged events with Grouping enabled. This happens in 6.6.0, 6.7.x and 6.8.x versions of the Telerik DataGrid.
As of Telerik v7.0.0 this started to happen. In v6.8.0 the issue doesn't occur. The customer uploaded a sample project in the support ticket.
Issue description:
When the grid contains, after filtering out ,no rows the "Empty template" is not used/displayed.
Tested on Windows, with "Telerik_UI_for_dot_NET_Maui_7_1_0_Dev\Examples\ControlsSamples", Example "Empty Template".
Steps to reproduce:
Expected behavior:
Display/Use "Empty template" when there are no visible records.
...or to make it more consistent with the current implementation - add new option "ItemsSourceNullOrEmptyOrFilteredOut" to the enum "EmptyContentDisplayMode":
namespace Telerik.Maui.Controls;
//
// Summary:
// Defines the modes for displaying empty content.
public enum EmptyContentDisplayMode
{
//
// Summary:
// Displays the empty content view only when the ItemsSource is null.
ItemsSourceNull,
//
// Summary:
// Displays the empty content view when ItemsSource is null or when the source is
// empty (has zero items).
ItemsSourceNullOrEmpty,
+ //
+ // Summary:
+ // Displays the empty content view when ItemsSource is null or when the source is
+ // empty (has zero items) or when all items are filtered out. (either by filter or by search)
+ ItemsSourceNullOrEmptyOrFilteredOut
}
Best regards,
Peter
For example we have set RowHeight to 26 with GridLineThickness = 1, GridLinesVisibility = Horizontal, and RowBackgroundStyle and AlternateRowBackgroundStyle with BorderThickness = 0.
The first row is 26px, the middle rows are 25px and the last row is 24px. So it seems the grid lines are included in the calculation of the RowHeight.
Begin editing the first cell firs column
Without closing the cell editor, scroll down to the last cell, the first cell should exit the viewport.
Start editing the last cell.
Scroll back up to the first cell
The content inside the first cell is missing.
The content should be there.
When using ImageButton inside a CellTemplate, the image does not display initially. When you resize the window image is displayed.
Workaround:
Use Image instead of ImageButton
Delegate aggregate descriptor does not update value in the UI when adding/removing item.
The behavior also happens with the property aggregate descriptor.
Having this setup:
<telerikDataGrid:DataGridTemplateColumn HeaderText="Age"
CanUserSort="True">
<telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
<DataTemplate>
<Label Text="{Binding Age}" />
</DataTemplate>
</telerikDataGrid:DataGridTemplateColumn.CellContentTemplate>
<telerikDataGrid:DataGridTemplateColumn.SortDescriptor>
<telerikCommon:PropertySortDescriptor PropertyName="Age" SortOrder="Descending" />
</telerikDataGrid:DataGridTemplateColumn.SortDescriptor>
</telerikDataGrid:DataGridTemplateColumn>
When applying SortDescriptor to the Template column, the column is not initially sorted.
I have been trying to get the DataGrid to work with Maui.Markup and I'm not finding a way to add a DataGrid to my View.
I would have expected I could add a DataGrid to the Children of Grid...but I'm not finding the right cast to allow that to happen, Grid.Children is expecting an IView.
Is this possible and I'm just missing something simple? Thanks!