File tree Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Expand file tree Collapse file tree 1 file changed +1
-21
lines changed Original file line number Diff line number Diff line change @@ -25,27 +25,7 @@ The Blazor DropDownList component allows the user to choose an option from a pre
25
25
26
26
> caption DropDownList [ data binding] ( slug:components/dropdownlist/databind ) , two-way value binding, and main features
27
27
28
- ```` RAZOR
29
- Selected value: @selectedValue
30
- <br />
31
-
32
- <TelerikDropDownList Data="@myDdlData" TextField="MyTextField" ValueField="MyValueField" @bind-Value="selectedValue">
33
- </TelerikDropDownList>
34
-
35
- @code {
36
- //in a real case, the model is usually in a separate file
37
- //the model type and value field type must be provided to the dropdpownlist
38
- public class MyDdlModel
39
- {
40
- public int MyValueField { get; set; }
41
- public string MyTextField { get; set; }
42
- }
43
-
44
- int selectedValue { get; set; } = 3;
45
-
46
- IEnumerable<MyDdlModel> myDdlData = Enumerable.Range(1, 20).Select(x => new MyDdlModel { MyTextField = "item " + x, MyValueField = x });
47
- }
48
- ````
28
+ <demo metaUrl =" client/dropdownlist/overview/ " height =" 420 " ></demo >
49
29
50
30
> caption The rendered DropDownList component from the code snippet above:
51
31
You can’t perform that action at this time.
0 commit comments