UI-For-UWP icon indicating copy to clipboard operation
UI-For-UWP copied to clipboard

RadDataGrid NRE when inline editing a row with a frozen read-only column

Open davidknaack opened this issue 3 years ago • 2 comments

Description

A RadDataGrid set to UserEditMode="Inline" that has a frozen column with UserCanEdit="False" will throw a NullReferenceException in XamlGridEditCellGenerator.cs when entering edit mode.

Steps to Reproduce

  1. Add a RadDataGrid with a data source containing at least one item with at least two properties.
  2. Set the following grid attributes: FrozenColumnCount="1" UserEditMode="Inline" AutoGenerateColumns="False".
  3. Define at least two columns for the data source properties.
  4. Set the first column attribute UserCanEdit="False".
  5. Run the app and double click a row to enter inline editing mode.

Expected Behavior

The grid should enter inline editing mode with no editor control in the first column.

Actual Behavior

The app immediately exits (or stops in debugger) due to an uncaught NullReferenceException.

Basic Information

  • Version with issue: 1.0.2.8
  • Last known good version: none
  • IDE: Visual Studio 2019
  • UWP SDK: 19041
  • Nuget Packages: Telerik.UI.for.UniversalWindowsPlatform 1.0.8.2

Reproduction Link

Example

davidknaack avatar Apr 08 '22 22:04 davidknaack

Hi David, Thank you for looking into this. I can confirm it's a bug and I have approved your pull request. Best regards, Ves

vvgeorgiev avatar Apr 22 '22 10:04 vvgeorgiev

Hi @vvgeorgiev, Thanks! I see this is tagged as ReadyForTest. Do I need to act on this?

davidknaack avatar Aug 06 '22 18:08 davidknaack