From bdd55dad7c3ef34771f6cb06bb43ef00efb2305a Mon Sep 17 00:00:00 2001 From: KB Bot Date: Fri, 12 Dec 2025 06:50:32 +0000 Subject: [PATCH 1/2] Added new kb article select-all-text-edit-mode-datagrid-dotnet-maui --- ...all-text-edit-mode-datagrid-dotnet-maui.md | 71 +++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 knowledge-base/select-all-text-edit-mode-datagrid-dotnet-maui.md diff --git a/knowledge-base/select-all-text-edit-mode-datagrid-dotnet-maui.md b/knowledge-base/select-all-text-edit-mode-datagrid-dotnet-maui.md new file mode 100644 index 00000000..274867b8 --- /dev/null +++ b/knowledge-base/select-all-text-edit-mode-datagrid-dotnet-maui.md @@ -0,0 +1,71 @@ +--- +title: Selecting All Text in Edit Mode in DataGrid for UI for .NET MAUI +description: Learn how to select all text in a cell when entering edit mode in the DataGrid for UI for .NET MAUI. +type: how-to +page_title: How to Select All Text in Edit Mode in DataGrid for UI for .NET MAUI +meta_title: How to Select All Text in Edit Mode in DataGrid for UI for .NET MAUI +slug: select-all-text-edit-mode-datagrid-dotnet-maui +tags: datagrid, ui-for-dotnet-maui, selectiononfocus, radentry, edit-mode +res_type: kb +--- + +## Environment + +| Version | Product | Author | +| --- | --- | ---- | +| 12.0.0 | Telerik UI for .NET MAUI DataGrid | [Dobrinka Yordanova](https://www.telerik.com/blogs/author/dobrinka-yordanova) | + +## Description + +I want to select all text in a cell when entering edit mode in the [DataGrid](https://www.telerik.com/maui-ui/documentation/controls/datagrid/overview) for UI for .NET MAUI, but I can't figure out how to accomplish this. + +This knowledge base article also answers the following questions: +- How to use `SelectionOnFocus` property in `RadEntry` for DataGrid editing? +- How to select text automatically in edit mode in DataGrid? +- How to set implicit style for `RadEntry` in DataGrid? + +## Solution + +To select all text in a cell during edit mode, set the `SelectionOnFocus` property of the `RadEntry` editor to `SelectAll`. Use an implicit style for the `RadEntry` to apply this property. + +1. Define an implicit style for `RadEntry` in the `ContentPage.Resources` section. +2. Set the `SelectionOnFocus` property to `SelectAll` within the style. +3. Use the `RadDataGrid` with `UserEditMode` set to `Cell`. + +Here is an example implementation: + +```xml + + + + + + + + + + + + + + + + + + + +``` + +## See Also + +- [DataGrid Overview for UI for .NET MAUI](https://www.telerik.com/maui-ui/documentation/controls/datagrid/overview) +- [Entry Documentation](https://www.telerik.com/maui-ui/documentation/controls/entry/overview) +- [DataGrid User Edit Modes](https://www.telerik.com/maui-ui/documentation/controls/datagrid/editing) From c596b84c6d24c3add4f16d1e140fd002c034eb30 Mon Sep 17 00:00:00 2001 From: Didi Yordanova <39412212+didiyordanova@users.noreply.github.com> Date: Tue, 16 Dec 2025 13:50:30 +0200 Subject: [PATCH 2/2] Update knowledge-base/select-all-text-edit-mode-datagrid-dotnet-maui.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- .../select-all-text-edit-mode-datagrid-dotnet-maui.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/knowledge-base/select-all-text-edit-mode-datagrid-dotnet-maui.md b/knowledge-base/select-all-text-edit-mode-datagrid-dotnet-maui.md index 274867b8..14b1e71f 100644 --- a/knowledge-base/select-all-text-edit-mode-datagrid-dotnet-maui.md +++ b/knowledge-base/select-all-text-edit-mode-datagrid-dotnet-maui.md @@ -13,7 +13,7 @@ res_type: kb | Version | Product | Author | | --- | --- | ---- | -| 12.0.0 | Telerik UI for .NET MAUI DataGrid | [Dobrinka Yordanova](https://www.telerik.com/blogs/author/dobrinka-yordanova) | +| 12.0.0 | Telerik UI for .NET MAUI DataGrid | [Dobrinka Yordanova](https://www.telerik.com/blogs/author/dobrinka-yordanova) | ## Description