
CheckboxList
The control is used to create a multi-select check box group
Show check box groups by data binding
Demo
- Set bidirectional binding data value through
bind-Value
- Set candidate data sources through
Items
- Get the changed item instance through the
onSelectedChanged
callback method
Built in validateform
Demo
You can experience adaptive layout by changing the window size
In this example, the Name
field of the binding model binditem
is automatically changed by checking the option
Because it is built into the ValidateForm
form, in this example, RequiredAttribute
required for verification is added. When all options are cancelled, the verification result will be prompted
ShowLabelIntro
Demo
Tvalue is set to IEnumerable<int>
generic collection, the ValueField
specified field of the bound collection must be consistent with the generic type
TValue is set to IEnumerable<string>
generic collection
The binding value is enumeration
Demo
When CheckboxList
binds an enumeration set, Items
does not need to be specified, Items
will be automatically set to all values in the enumeration. If you need to bind some values, please provide the enumeration set Items
By setting ShowBorder='false'
do not display borders
Demo
Displays a red border when validation fails
Arrange checkboxes vertically by setting IsVertical = 'true'
Demo
Disable by setting IsDisabled='true'
Demo
Attributes
Event
B station related video link
交流群