Define a variable in the window where the dropdown list should be installed, which should contain the list, for example, like this:
namespace Projektabrechnung.Pages
{
public partial class AddDocumentTypComponent
{
public class DropdownValue
{
public Int16 Id { get; set; }
public String Name { get; set; }
}
}
}
Then, when loading the window, define a property in radzen that loads the values into the list, which should then be in it:
Code-Example:
new List<DropdownValue>(){new DropdownValue(){Id = 0, Name="Sonstiges"},new DropdownValue(){Id = 1, Name="Rechnung (Standard)"}, new DropdownValue(){Id = 2, Name="Gutschrift"}, new DropdownValue(){Id = 3, Name="Stornorechnung"}, new DropdownValue(){Id = 4, Name="Stornogutschrift"}}
Then place blazor dropdownlist in page and configure data source: