I'm having this compile error:
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
when trying to diplay a RadzenDropDownDataGrid in a dialog.
The DropDown works if I place it in the body.
Indeed the Blazor parser does not seem to recognise this syntax. You can check here what to use as an alternative: https://github.com/radzenhq/radzen-blazor/blob/master/RadzenBlazorDemos/Pages/DialogPage.razor#L67
To be safe you can use a separate component (in its own .razor file) for dialog.
Thanks. The separate component solution solved the problem