Behavior on MacCatalyst:
1. Enter in Edit mode in any cell
2. Press Enter
3.Value is committed, but not moved to the next row
Additional note: The KeyDownCommand execute method does not fire on MacCatalyst when cell is in edit mode and Enter is pressed.
This is how it works on Windows
1. Enter in Edit mode in any cell
2. Press Enter
3. Values is committed and the current cell is moved to the next row cell in edit
When 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;
}
If a user changes an editable cell's value and then hit Tab, and the next cell to the right is not editable. Furthermore, the DataGrid enters into a state where no cells can be edited.
If I use the CellEditTemplate to show a custom view when editing - the view does not get auto focus when shown and the end user needs to tap inside so the view gets focus.
<telerik:DataGridTextColumn PropertyName="CountryName" HeaderText="Country">
<telerik:DataGridTextColumn.CellEditTemplate>
<DataTemplate>
<telerik:RadEntry Text="{Binding Item.CountryName}" />
</DataTemplate>
</telerik:DataGridTextColumn.CellEditTemplate>
</telerik:DataGridTextColumn>
Work-around:
Manually invoke the Focus() method and set the cursor position when the view gets loaded and when it changes its visibility:
<telerik:RadEntry Text="{Binding Item.CountryName}"
Loaded="RadEntry_Loaded"
PropertyChanged="RadEntry_PropertyChanged" />
private void RadEntry_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
{
if (e.PropertyName == nameof(View.IsVisible))
{
RadEntry entry = (RadEntry)sender;
if (entry.IsVisible)
{
FocusEntry(entry);
}
}
}
private void RadEntry_Loaded(object sender, EventArgs e)
{
FocusEntry((RadEntry)sender);
}
private static void FocusEntry(RadEntry entry)
{
entry.Dispatcher.DispatchDelayed(TimeSpan.FromMilliseconds(1), () =>
{
entry.Focus();
entry.CursorPosition = entry.Text?.Length ?? 0;
});
}
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 cellsHi Team,
Please add support for multiple row column headers. As an example of what I'm referring to, see the Telerik UI for Blazor implementation here => Blazor DataGrid Demos - Multi-Column Headers | Telerik UI for Blazor
Thank you,
Christian
Hey,
when binding to any collection of T with a nested property the DataGrid throws a NullReferenceExpection in Telerik.Maui.Controls.Compatibility.Common.Data.Fields.PropertyInfoFieldInfo.GetValue(object item) when the parent property is null, rendering nested propert< bindings kinda useless.
To mitigate this issue a Fallback-value option for each column (or at least catching the exception and returning null) would be nice.
Hi Team,
If the cell is frozen, the HitTestService.CellInfoFromPoint( ) method always returns null
Thank you,
Jia
Hi Team,
I would like to have an external column chooser for the DataGrid. Where that chooser would be populated with the possible columns, and the user would elect/deselect what columns they want in the DataGrid.
Thank you,
Clint
Hi Team,
I would like to see this feature implemented for the UI for Maui DataGrid => WPF DataGrid - Save/Load Settings - Telerik UI for WPF
I want my users to be able to save their current grouping/filtering/etc. settings just like the PersistenceFramework can do it for the WPF GridView.
Thank you,
Clint
TapGestureRecognizer not working correctly when tapping inside the DataGrid control on iOS and MacCatalyst platforms.
Workaround:
You could use CellTap or CellDoubleTap commands of the DataGrid control. Here are the links to our documentation articles: DataGrid Commands and DataGrid CellTap Command.
Hello,
it would be a very useful information when subscribing to the DataBindingComplete Command of a DataGrid to know whether for example a filter, sort, grouping had changed.
Currently, it is an internal Property
Regards
DataGrid is added inside pages that can be accessed through shell flyout menu.
And the exact steps to reproduce the issue:
Go to page GridOne page in flyout menu.