Duplicated
Last Updated: 29 Oct 2025 09:04 by ADMIN
Heiko
Created on: 23 Oct 2025 11:03
Category: UI for WinUI
Type: Bug Report
1
RadDataGrid cannot be used inside a ContentDialog because selection doesn't work

Hello,

when I create a ContentDialog (or Popup) containing a RadDataGrid, row/cell selection doesn't work. It seems like all pointer events are ignored on the cells panel. Here is the sample code:

using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Telerik.UI.Xaml.Controls.Grid;

namespace GridTest
{
    /// <summary>
    /// An empty window that can be used on its own or navigated to within a Frame.
    /// </summary>
    public sealed partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            ContentDialog contentDialog = new ContentDialog()
            {
                Content = new RadDataGrid()
                {
                    ItemsSource = new DummyData[] { new DummyData("Item 1") }
                }
            };

            contentDialog.XamlRoot = this.Content.XamlRoot;
            contentDialog.ShowAsync();
        }
    }

    public record DummyData(string Text);
}

Could you please fix this as soon as possible or provide me a workaround for this bug

Greetings

Heiko

Duplicated
This item is a duplicate of an already existing item. You can find the original item here:
2 comments
ADMIN
Stenly
Posted on: 29 Oct 2025 09:04

Hello Heiko,

Thank you for reaching out to us.

This seems to be related to the bug report to which you commented recently. It is currently in development, and it should be present in the next major release that is scheduled for the middle of November, however, things could change.

With this in mind, I would suggest subscribing to the bug report, in order to receive an email notification when its status changes.

Regards,
Stenly
Progress Telerik

Your perspective matters! Join other professionals in the State of Designer-Developer Collaboration 2025: Workflows, Trends and AI survey to share how AI and new workflows are impacting collaboration, and be among the first to see the key findings.
Start the 2025 Survey
Heiko
Posted on: 23 Oct 2025 14:31

I investigated and found out that the error is due to the following change:


Once the Unloaded event was called on the RadGridGrid, it will stop working even if it gets loaded again. This error may also effect other as this change has been done in the RadControl class.
When displaying a RadDataGrid inside a ContentDialog the Unloaded gets called because if this bug.
When displaying a RadDataGrid inside a Popup the bug occurs after the popup is closed for the first time