Radzen.Blazor/RadzenDropDown.razor.cs sample code is having error #1253

Closed
opened 2026-01-29 17:51:07 +00:00 by claunia · 3 comments
Owner

Originally created by @LokanathCalyx on GitHub (May 30, 2024).

Describe the bug
Sample code that is provided for Radzen.Blazor/RadzenDropDown.razor.cs, is breaking . Sample for "DropDown grouping with multiple selection"

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://blazor.radzen.com/dropdown-grouping(2nd dropdown)'
  2. Click on 'Edit Source'
  3. use this code in Vscode/VS
  4. See error

Alternatively link your repo with a sample project that can be run.

Expected behavior
it should work out of box( except the dbcontext)

Screenshots
NA

Desktop (please complete the following information):
Any

Additional context
NA

Originally created by @LokanathCalyx on GitHub (May 30, 2024). <!-- IMPORTANT: Read this first!!! 1. If you own a Radzen Professional or Еnterprise subscription you can report your issue or ask us a question via email at info@radzen.com. Radzen staff will reply within 24 hours (Professional) or 16 hours (Enterprise) 2. The Radzen staff guarantees a response to issues in this repo only to paid subscribers. 3. If you have a HOW TO question start a new forum thread in the Radzen Community forum: https://forum.radzen.com. Radzen staff will close issues that are HOWTO questions. 4. Please adhere to the issue template. Specify all the steps required to reproduce the issue or link a project which reproduces it easily (without requiring extra steps such as restoring a database). --> **Describe the bug** Sample code that is provided for Radzen.Blazor/RadzenDropDown.razor.cs, is breaking . Sample for "DropDown grouping with multiple selection" **To Reproduce** Steps to reproduce the behavior: 1. Go to 'https://blazor.radzen.com/dropdown-grouping(2nd dropdown)' 2. Click on 'Edit Source' 3. use this code in Vscode/VS 4. See error Alternatively link your repo with a sample project that can be run. **Expected behavior** it should work out of box( except the dbcontext) **Screenshots** NA **Desktop (please complete the following information):** Any **Additional context** NA
Author
Owner

@akorchev commented on GitHub (May 30, 2024):

See error

What error?

@akorchev commented on GitHub (May 30, 2024): > See error What error?
Author
Owner

@LokanathCalyx commented on GitHub (May 30, 2024):

Hi ,
Error is due to "Order" class. it's not created & "Customer" Entity is from Dbcontext.
public IEnumerable<Order> Items { get; set; }

Moreover, for trial/first time users , hardcoded values will be much simpler to directly test the component, rather then Dbcontext object entity.

@LokanathCalyx commented on GitHub (May 30, 2024): Hi , Error is due to "Order" class. it's not created & "Customer" Entity is from Dbcontext. `public IEnumerable<Order> Items { get; set; }` Moreover, for trial/first time users , hardcoded values will be much simpler to directly test the component, rather then Dbcontext object entity.
Author
Owner

@enchev commented on GitHub (May 30, 2024):

Hey @LokanathCalyx,

The entire source code of our demos is available in this repo. Feel free to open it in Visual Studio.

@enchev commented on GitHub (May 30, 2024): Hey @LokanathCalyx, The entire source code of our demos is available in this repo. Feel free to open it in Visual Studio.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#1253