Data Grid Error

HI
Iam getting the following error when trying to use a grid in Razden UI

radzen: Generating code ...
radzen: Code generation done in 2172ms.
dotnet: watch :
dotnet: Started

dotnet: Pages\AssetData.razor(231,51): error CS1503: Argument 1: cannot convert from 'System.Collections.Generic.IEnumerable<Mystoreplace.Models.Mystoreplace.AssetTransaction>' to 'System.Collections.Generic.IEnumerable<Mystoreplace.Pages.AssetTransaction>' [C:\Code\mystoreplace\server\Mystoreplace.csproj]

dotnet:

dotnet: The build failed. Fix the build errors and run again.

dotnet: watch : Exited with error code 1

dotnet: watch : Waiting for a file to change before restarting dotnet...

Regards
Brian

Hi Brian,

It seems that you have page named after model name. Please try to specify the type using full name including namespace. You can do that in the property setter of the property that is used for DataGrid Data.

HI
I have attached the following screen shots
All the code was generated by Radzen UI.

Please zip and send us your application at info@radzen.com to check what's going on.

Thanks will send now.
Brian

Hi Brian,

Please open meta/test-asset-trans.json and change grid itemType from:

"itemType": "AssetTransaction",

to

 "itemType": "Mystoreplace.Models.Mystoreplace.AssetTransaction",

you can also remove all attributes from the grid - we will handle this in our next update.

HI
I created a new test project. I created a new form and added the Asset Grid Manually all works OK and the project builds.
When I add a new Page using the CRUD pages Template and use the default Page Name that is generated when you select the Page Schema dropdown the generated Crud pages break the application and I get the following errors on build.

Pages\AssetData.razor(73,22): error CS1061: 'AssetAsset' does not contain a definition for 'AssetStatus' and no accessible extension method 'AssetStatus' accepting a first argument of type 'AssetAsset' could be found (are you missing a using directive or an assembly reference?) [C:\Code\atest\server\Atest.csproj]
obj\Debug\netcoreapp3.1\Razor\Pages\AssetData.razor.g.cs(284,133): error CS1662: Cannot convert lambda expression to intended delegate type because some of the return types in the block are not implicitly convertible to the delegate return type [C:\Code\atest\server\Atest.csproj]

dotnet:

dotnet: The build failed. Fix the build errors and run again.

dotnet: watch : Exited with error code 1

dotnet: watch : Waiting for a file to change before restarting dotnet...

This might help in fixing the issue.

If I rename the Auto Generated Page Name the issue is not there and the CRUD pages are generated successfully

Regards
Brian

This is different problem, thanks for the report. Are you able to run normally the application after changing the itemType in the meta?

HI
This has solved the issue Thank you
Regards
Brian