Pending Review
Last Updated: 23 Oct 2025 14:31 by Heiko
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

1 comment
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