I am a novice in front-end work. I've always done back-end and middleware development so any help is appreciated. I'm trying to build a Blazor Web App PoC. I'm hitting a couple of weird issues with the Dropdown. I see the correct data, but the dropdown arrow does not render. When I click the dropdown box, it displays the values with bullets below my NavMenu. When I select it then displays the Id (value) in the box and the text below the box. I have tried quite a few different options based on topics here and other places on the web, all with similar behavior. My current code is:
It looks as if the CSS file of the Radzen.Blazor components is not loading for some reason. Make sure you are including a theme CSS file first as mentioned in the getting started instructions. If you are - ensure the path is correct and see if the CSS file fails to load for some reason via your browsers developer tools.
Thank you for your assistance. That worked. I also have a dropdowndatagrid with defined columns. I see the column headers in the grid but no data, although my variable in the Data property returns 7 records. Do you have any recommendations?
I have a separate issue. The first dropdown is working. When I select the value, it passes to a new function in the code that calls another controller action with an id parameter. I expect data to populate when Id = 1 is passed from the selected value of dropdown #1 and I see data returned. The list does not populate dropdown #2. If I select id 2 in dropdown #1, it returns no data from the controller (count = 0) as expected, but dropdown #2 populates with the list as if id = 1 were passed to the controller. I am confused as to why this is happening because when I inspect, everything looks correct, except for when dropdown list #2 populates. Any guidance would be greatly appreciated.
When the page loads, dropdown 1 populates as expected with two values - Id 1 and 2. I select 1, it calls the change method that passes id 1 to the controller which calls a stored procedure with parameter value =1. It returns 7 rows to tournamentList and count = 7 as expected. Dropdown 2 does not populate. If I select 2 from dropdown 1, the same thing happens except it returns 0 rows - verified tournamentList count = 0 but dropdown 2 now populates with the 7 rows I would expect to populate when Id 1 is selected in dropdown 1.