Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore(example): Polish combobox virtualization loader kb article
Co-authored-by: Dimo Dimov <961014+dimodi@users.noreply.github.com>
  • Loading branch information
georgedautov and dimodi authored Sep 2, 2025
commit 39967aa6cf3feb525bc343722350d69f62f44c6f
8 changes: 5 additions & 3 deletions knowledge-base/combobox-virtualization-loader.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Modify the visibility of old items using CSS rules and conditionally toggle thei

<p>@SelectedValue</p>

@if (IsLoading == true) {
@if (IsLoading) {
<style>
.example-cb .k-list-item {
visibility: hidden;
Expand Down Expand Up @@ -74,10 +74,12 @@ Modify the visibility of old items using CSS rules and conditionally toggle thei
</TelerikComboBox>

@code{
bool IsLoading {get;set;} = false;
int SelectedValue { get; set; } = 1234; // pre-select an item to showcase the value mapper
private TelerikComboBox<Person, int>? ComboBoxRef { get; set; }
private int SelectedValue { get; set; } = 1234; // pre-select an item to showcase the value mapper
private List<Person> AllData { get; set; }

private bool IsLoading { get; set; }

private async Task GetRemoteData(ComboBoxReadEventArgs args)
{
IsLoading = true;
Expand Down
Loading