when applying Grouping and RowHeight to the DataGrid and expand the row details, the following happens -> The DataGrid in the RowDetails only appears for alternate rows.
In addition the RowHeight does not apply to the Grouping Row.
Remove the RowHeight from the DataGrid and set the CellContentStyle property to the columns and set the TextMargin to the DataGridTextCellStyle, and ButtonMargin to the DataGridToggleRowDetailsCellStyle. Here is an example when setting them to 0:
<telerik:DataGridTextCellStyle x:Key="cellStyle"
TextMargin="0"/>
<telerik:DataGridToggleRowDetailsCellStyle x:Key="toggleStyle"
ButtonMargin="0"/>
<telerik:RadDataGrid.Columns>
<telerik:DataGridToggleRowDetailsColumn CellContentStyle="{StaticResource toggleStyle}"
IsFrozen="True"/>
<telerik:DataGridTextColumn PropertyName="Country"
CellContentStyle="{StaticResource cellStyle}"
IsFrozen="True"
CanUserReorder="False" />
<telerik:DataGridTextColumn PropertyName="Capital"
CellContentStyle="{StaticResource cellStyle}" />
</telerik:RadDataGrid.Columns>
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
1. Apply filtering to the DataGrid using the distinct values in the Filtering UI,
2. Clear the filter descriptors from external UI.
3. Open the same Filtering UI
Actual: the distinct values in the Filtering UI are still checked.
Expected: The distinct values should be cleared.
Hi,
I wanted to request a feature for the .net maui datagrid. I would like if it were possible to merge cells across rows when they have the same value. For example, I use the datagrid to display events and it would be so much more readable if all the events that were on the same day (date) showed the date cell just once merged across a few rows rather than duplicating it multiple times.
Thanks
I want to have the option to add a ToolTip for column,
<telerik:DataGridTextColumn IsFrozen="True" HeaderText="BirthDay"
DataMemberBinding="{Binding BirthDay}"
ToolTipProperties.Text="{Binding BirthDay}" />
Scenario: I want to bind two properties to a column, So I created Text column and set DataMemberBinding property to binding these two properties,
<telerik:DataGridTextColumn HeaderText="Country">
<telerik:DataGridTextColumn.DataMemberBinding>
<MultiBinding Converter="{StaticResource MultiConverter}">
<Binding Path="Country" />
<Binding Path="City" />
</MultiBinding>
</telerik:DataGridTextColumn.