File tree Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Expand file tree Collapse file tree 1 file changed +1
-25
lines changed Original file line number Diff line number Diff line change @@ -25,31 +25,7 @@ The Blazor DropDownList component allows the user to choose an option from a pre
2525
2626> caption DropDownList [ data binding] ( slug:components/dropdownlist/databind ) , two-way value binding, and main features
2727
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- ````
49-
50- > caption The rendered DropDownList component from the code snippet above:
51-
52- ![ Blazor DropDown List component] ( images/dropdownlist-basic-screenshot.jpg )
28+ <demo metaUrl =" client/dropdownlist/overview/ " height =" 380 " ></demo >
5329
5430## Data Binding
5531
You can’t perform that action at this time.
0 commit comments