Skip to content

Commit c491e7d

Browse files
georgedautovdimodi
authored andcommitted
chore(example): Polish combobox virtualization loader kb article
Co-authored-by: Dimo Dimov <[email protected]>
1 parent 516ca46 commit c491e7d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

knowledge-base/combobox-virtualization-loader.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Modify the visibility of old items using CSS rules and conditionally toggle thei
4141
4242
<p>@SelectedValue</p>
4343
44-
@if (IsLoading == true) {
44+
@if (IsLoading) {
4545
<style>
4646
.example-cb .k-list-item {
4747
visibility: hidden;
@@ -74,10 +74,12 @@ Modify the visibility of old items using CSS rules and conditionally toggle thei
7474
</TelerikComboBox>
7575
7676
@code{
77-
bool IsLoading {get;set;} = false;
78-
int SelectedValue { get; set; } = 1234; // pre-select an item to showcase the value mapper
7977
private TelerikComboBox<Person, int>? ComboBoxRef { get; set; }
78+
private int SelectedValue { get; set; } = 1234; // pre-select an item to showcase the value mapper
8079
private List<Person> AllData { get; set; }
80+
81+
private bool IsLoading { get; set; }
82+
8183
private async Task GetRemoteData(ComboBoxReadEventArgs args)
8284
{
8385
IsLoading = true;

0 commit comments

Comments
 (0)