having shell project with two pages added in flyout items:
MainPage is with DataGrid, page2 with TabView.
On .NET 8 RC1/RC2 Switching back from page2 to MainPage results in a StackOverflowException from RadDataGrid.
When we have ListenForNestedPropertyChange property set to true and at some point Clear of the ItemsSource is called the newly added items to the collection stop to listen for PropertyChanged.
In order to make ListenForNestedPropertyChange work again toggle the value of the property. First set it to false and after that back to true.
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>
Run SDKBrowserMaui example on WinUI
Navigate to DataGrid->LoadOnDemandCategory->LoadOnDemandExmaple
Start scrolling the grid using the scrollbar
Crash occurs on WinUI.
<telerik:RadDataGrid x:Name="dataGrid" AutomationId="dataGrid" AutoGenerateColumns="False">
<telerik:RadDataGrid.Columns>
<telerik:DataGridTextColumn PropertyName="Country" HeaderText="HighlightedLabel">
<telerik:DataGridTextColumn.CellContentTemplate>
<DataTemplate>
<telerik:RadHighlightLabel UnformattedText="{Binding Country}"
HighlightText="{Binding Source={x:Reference searchEntry}, Path=Text}"
HighlightTextColor="Red"/>
</DataTemplate>
</telerik:DataGridTextColumn.CellContentTemplate>
</telerik:DataGridTextColumn>
</telerik:RadDataGrid.Columns>
</telerik:RadDataGrid>
Actual: The highlighted text doesn't get updated and stays the same.
1. filter the column by any distinct value
2. The filter is applied
3. Open the same filtering again and tap reset
4. All rows are visible and everything is ok
5. Open the same filtering again
The Checkbox from step 1 is still checked and checking any other checkbox and applying filtering does not work
I want to exit edit mode and commit edit when hitting on Enter Key.
It works great for text column/cell.
But it does not work for numerical cellsWhen cell is in edit mode, pressings enter key calls infinitely CommitEdit Execute method in custom scenario.
1. When new item is added to the DataGrid source, the cell goes in edit mode
2. Pressing enter key executes additional logic and CommitEdit Execute method calls infinitely.
Workaround:
Inside the CommitEdit CanExecure method, call the default can execute logic
public override bool CanExecute(object parameter)
{
return this.Owner.CommandService.CanExecuteDefaultCommand(DataGridCommandId.CommitEdit, parameter);
//return true;
}
Dynamic change of the IsEnabled property of the RadDataGrid does not affect the RowDetails, leaving the UI inconsistent.
In my case, the RadDataGrid is disabled initially (IsEnabled=False). Some data is loaded in the DataGrid. At runtime I set the IsEnabled property of the DataGrid to true. I am then able to expand row details. The issue is that the view in the row details has the IsEnabled property set to false.
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.