Inherit a RadzenDataGrid in Radzen Blazor Studio

In Radzen Blazor Studio, when defining a component by inheriting from RadzenDataGrid (here in SOURCE mode):

  @typeparam TItem
  @using Radzen
  @using Radzen.Blazor
  @inherits RadzenDataGrid<TItem>
  <div>
      -------
  </div>
  @{
      // Display the base RadzenDataGrid that we are inheriting from.
      base.BuildRenderTree(__builder);
  }

An error “'string' is not a member of type 'Radzen.Server.Arg0'” occurs in DESIGN mode.
The same code works when inheriting from “RadzenSpeechToTextButton” in place of “RadzenDataGrid”.
I am doing something wrong.
Note that I can still use the new component elsewhere in my application, but fixing the issue will permit to use Radzen Blazor Studio in DESIGN mode.
Thank you very much.
Hervé

Try this instead:

  @typeparam TItem
  @using Radzen
  @using Radzen.Blazor
  @inherits RadzenDataGrid<TItem>
  <div>
      -------
  </div>

  @{
    base.BuildRenderTree(__builder);
  }

  @code {
#if RADZEN
    protected override void OnDataChanged()
    {
        KeyProperty = null;

        base.OnDataChanged();
    }
#endif
  }

Setting the KeyProperty to null will avoid the design time exception.

Thank you very much.
Hervé

Hi
the override cause the UI of the grid fall into infinite loading in design time, is this normal?
im asking this is because of I have a master detail page using my base grid causing error of the Studio

Thank you
Lee