Skip to content

Commit 7bdec68

Browse files
xristianstefanovdimodi
authored andcommitted
chore(Grid): address latest comments
1 parent 93df8a6 commit 7bdec68

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

knowledge-base/grid-loader-during-contextmenu-actions.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
2-
title: Display Loader During Actions in TelerikGrid with ContextMenu
3-
description: Learn how to show a loading indicator while performing actions from a ContextMenu in a TelerikGrid for Blazor.
2+
title: Display Loader During ContextMenu Actions in Grid
3+
description: Learn how to show a loading indicator while performing actions from a ContextMenu in a Telerik Grid for Blazor.
44
type: how-to
55
page_title: How to Display a Loader in TelerikGrid for Blazor During ContextMenu Actions
66
slug: grid-kb-loader-during-contextmenu-actions
7-
tags: contextmenu,grid,loader,loading, loadercontainer,actions
7+
tags: contextmenu, grid, loader, loading, loadercontainer
88
res_type: kb
99
ticketid: 1675767
1010
---
@@ -115,7 +115,7 @@ To display a spinner during delayed operations initiated from a ContextMenu in a
115115
{
116116
case "BeginEdit":
117117
LoaderVisible = true;
118-
await Task.Delay(3000); //initiates delay
118+
await Task.Delay(1); // triggers UI refresh for the LoaderContainer to show
119119
LoaderVisible = false;
120120
121121
var currState = GridRef.GetState();
@@ -126,7 +126,7 @@ To display a spinner during delayed operations initiated from a ContextMenu in a
126126
break;
127127
case "ToggleSelect":
128128
LoaderVisible = true;
129-
await Task.Delay(3000); //initiates delay
129+
await Task.Delay(1); // triggers UI refresh for the LoaderContainer to show
130130
LoaderVisible = false;
131131
132132
var selItems = SelectedItems.ToList();
@@ -159,13 +159,13 @@ To display a spinner during delayed operations initiated from a ContextMenu in a
159159
GridData = new ObservableCollection<SampleData>();
160160
var rand = new Random();
161161
162-
for (int i = 0; i < 100; i++)
162+
for (int i = 1; i < 100; i++)
163163
{
164164
GridData.Add(new SampleData()
165-
{
166-
ID = i,
167-
Name = "Employee " + i.ToString(),
168-
});
165+
{
166+
ID = i,
167+
Name = "Employee " + i.ToString(),
168+
});
169169
}
170170
}
171171
@@ -232,6 +232,6 @@ To display a spinner during delayed operations initiated from a ContextMenu in a
232232

233233
## See Also
234234

235-
- [LoaderContainer Overview](slug://loadercontainer-overview)
236-
- [Grid Documentation](slug://grid-overview)
237-
- [ContextMenu Documentation](slug://contextmenu-overview)
235+
* [LoaderContainer Overview](slug://loadercontainer-overview)
236+
* [Grid Overview](slug://grid-overview)
237+
* [ContextMenu Overview](slug://contextmenu-overview)

0 commit comments

Comments
 (0)