You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.1 KiB
41 lines
1.1 KiB
@page "/Teacher/LBDemo"
|
|
@inject Blazored.SessionStorage.ISessionStorageService sessionStorage
|
|
@inject NavigationManager NavManager
|
|
|
|
@using System.ComponentModel.DataAnnotations
|
|
@using Syncfusion.Blazor.DropDowns;
|
|
@using BlazorApp.Helper
|
|
@using BWPMModels;
|
|
|
|
<div class="control-section e-tab-section">
|
|
<SfDropDownList @bind-Value="@KlasseID" TValue="string" TItem="clKlasse" Placeholder="Klasse" DataSource="@Klasse">
|
|
<DropDownListFieldSettings Value="ID" Text="bezeichnung"></DropDownListFieldSettings>
|
|
@*<DropDownListEvents TValue="string" TItem="clKlasse" </DropDownListEvents>*@
|
|
</SfDropDownList>
|
|
</div>
|
|
|
|
|
|
@code {
|
|
public string KlasseID;
|
|
|
|
public List<clKlasse> Klasse = new List<clKlasse>();
|
|
public class clKlasse
|
|
{
|
|
public string ID { get; set; }
|
|
public string bezeichnung { get; set; }
|
|
}
|
|
protected override async Task OnInitializedAsync()
|
|
{
|
|
for (int i = 0; i < 5; i++)
|
|
{
|
|
clKlasse ck = new clKlasse();
|
|
ck.ID=i.ToString();
|
|
ck.bezeichnung="Bezeichnung "+i.ToString();
|
|
Klasse.Add(ck);
|
|
|
|
}
|
|
}
|
|
|
|
|
|
}
|