I'm new to Blazor, so I feel like I'm missing some basic understanding - but I'm having lots of difficulty with the TemplateForms. The easiest example is when I copy and paste the demonstration code from the Blazor Login component (radzen.com) page;
At the end of Data=@("SimpleLogin") it gives 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
On the name of the function for Register=@OnRegister and ResetPassword=@OnResetPassword both give the error CS1503: Argument 2: cannot convert from 'method group' to 'EventCallback'
Is the login page an outdated example?
The examples on TemplateForm component (radzen.com) work out of the box but after making some simple modifications (e.g. using my own shared DTO instead of the one from the example) I get similar "cannot convert" errors. I think if I can understand why the above login form gives its errors, I can work through the others.
OK, what are the expected event arguments? How do I figure that out from the documentation - the only thing I can find is this, which is another example that gives the same error: Login component (radzen.com)
You have probably not set TItem correctly or the event argument is wrong (it should be what TItem is set to). Without any code example that doesn't work we can't help much.