CheckedListBox
Description
Usage
@using Gap.Blazor
@using Gap.Blazor.Components
@using Telerik.Blazor.Components
@inherits WMControlComponentBase
@namespace Gap.Blazor.Components
<WMStyleBase model=@CheckedListBoxModel></WMStyleBase>
<TelerikListBox @ref="@CheckedListBoxRef"
Data="@CheckedListBoxModel.ListControlItems"
SelectionMode="@GetSelectionMode()"
SelectedItemsChanged="SelectedIndexChangeCallback"
Height="@CheckedListBoxModel.Height.ToString()"
Width="@CheckedListBoxModel.Width.ToString()"
class="@CheckedListBoxModel.GetStringClasses()">
<ListBoxToolBarSettings>
<ListBoxToolBar Visible="true" />
</ListBoxToolBarSettings>
<ItemTemplate>
@if (context != null)
{
var item = (ListControlItem)context;
var checkboxValue = (bool?)item.Value;
<TelerikCheckBox Id="@item.GetHashCode().ToString()" Value="@checkboxValue" ValueChanged="@( (bool? value) => OnCheckBoxValueChanged(value, item) )"/>
<label for="@item.GetHashCode().ToString()">@item.Text</label>
}
</ItemTemplate>
</TelerikListBox>
Properties
Methods
Dynamic Rendering
Styles
Events
Last updated