First of all, kudos on this free library of blazor components.
I was trying to use the Radzen SelectBar (https://blazor.radzen.com/selectbar), but following the example that is posted on the demo website, I keep getting an error.
The control does not seem to work as on the example.
I tryed this very simple usage:
error CS1503: Argument 1: cannot convert from 'string' to 'System.Collections.Generic.IEnumerable'
error CS1503: Argument 2: cannot convert from 'Microsoft.AspNetCore.Components.EventCallback' to 'Microsoft.AspNetCore.Components.EventCallback'
error CS0029: Cannot implicitly convert type 'string' to 'System.Collections.Generic.IEnumerable'
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
error CS0103: The name 'Private' does not exist in the current context
error CS0103: The name 'Enterprise' does not exist in the current context
First thing that called my attention was the error about binding against a variable that is not an ienumerable (if i change "clientType" to a IEnumerable<string> this error goes away).
Then the Values of the RadzenSelectBarItem are also indicating that I cannot use strings?
It works if I change them to numbers or if I create variables with a string value and bind them in the RadzenSelectBarItem, but that does not seem to make much sense to me.
Thanks Enchev, but that was my point exactly.
The example with the binding of single values was not working.
But I found out what is going on. I was still using v2.9.0
This feature does not seem to exist in that version. It does not even compile
As of v2.9.2 it works as expected.