Skip to content

Commit 657c699

Browse files
chore(multiselect): update kb for multiselect with checkboxes to include new AutoClose feature (#173)
1 parent 36a1292 commit 657c699

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

knowledge-base/multiselect-checkbox-in-dropdown.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ Like https://demos.telerik.com/aspnet-ajax/combobox/examples/functionality/check
3232

3333
We have the MultiSelect component for this in Blazor: https://demos.telerik.com/blazor-ui/multiselect/overview
3434

35-
There is already a feature request for enabling it to stay open so the user can select many things at once, so you may want to Vote for it and Follow it: https://feedback.telerik.com/blazor/1452680-allow-selection-of-multiple-items-from-multiselect-dropdown-at-once-autoclose-parameter.
35+
The AutoClose feature allows the MultiSelect to stay open while the user selects the input.
3636

3737
The MultiSelect offers a highlighted state for the selected items already, yet if you want to add checkboxes, you can do that through the ItemTemplate (https://docs.telerik.com/blazor-ui/components/multiselect/templates) and you can get their `checked` attribute by comparing the current item against the selected items.
3838

@@ -42,7 +42,7 @@ The MultiSelect offers a highlighted state for the selected items already, yet i
4242
@* Note: If you use complex models, the GetChecked() method will be more complex and
4343
you would need to implement another convention for the id attribute, and you would need to cast the context *@
4444
45-
<TelerikMultiSelect Data="@Roles" @bind-Value="@TheValues" Placeholder="Write the roles you need">
45+
<TelerikMultiSelect Data="@Roles" @bind-Value="@TheValues" AutoClose="false" Placeholder="Write the roles you need">
4646
<ItemTemplate>
4747
<input type="checkbox" id="@( "cb" + context.Replace(" ", "") )" class="k-checkbox" checked="@GetChecked(context)">
4848
<label class="k-checkbox-label" for="@( "cb" + context.Replace(" ", "") )">@context</label>

0 commit comments

Comments
 (0)