You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common-features/loading-sign.md
+87-23Lines changed: 87 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Many times a component loads or saves data and that can take some time. To show
14
14
15
15
The Telerik components use the Telerik [Loader]({%slug loader-overview%}) and [LoaderContainer]({%slug loadercontainer-overview%}) components internally to match the theme and design.
16
16
17
-
The components add the busy indicator when they detect a slow-running `async`**data operation** (when it takes more than 120ms). For example, when the user inserts a record in the grid and the data service operation takes longer than that, there will be a loading indicator over the grid.
17
+
The components add the busy indicator when they detect a slow-running `async`**data operation** (when it takes more than 600ms). For example, when the user inserts a record in the grid and the data service operation takes longer than that, there will be a loading indicator over the grid.
18
18
19
19
#### In this article:
20
20
@@ -39,18 +39,18 @@ The following list shows the components that have a built-in loading sign for da
39
39
40
40
-->
41
41
42
-
*[**Grid**](https://demos.telerik.com/blazor-ui/grid/loading-animation) - a loading sign covers the entire component for slow data operations such as paging, filtering, sorting, grouping, expanding groups with load-on-demand; editing, inserting and deleting records. It is shown when the `OnRead` event is called.
42
+
*[**Grid**](https://demos.telerik.com/blazor-ui/grid/loading-animation) - a loading sign covers the data portion of the component for slow data operations such as paging, filtering, sorting, grouping, expanding groups with load-on-demand; editing, inserting and deleting records. It is shown when the `OnRead` event is called.
43
43
44
-
***ListView** - a loading sign covers the entire component for slow data operations such as editing, inserting and deleting records. It is also shown when the `OnRead` event is called.
44
+
***ListView** - a loading sign covers the data portion of the component for slow data operations such as editing, inserting and deleting records. It is also shown when the `OnRead` event is called.
45
45
46
46
<!--
47
47
48
48
* **MultiSelect** - while data is loading through the `OnRead` event, the dropdown is visible and new items are placeholders that are replaced with actual data when it arrives.
49
49
-->
50
50
51
-
***Scheduler** - a loading sign covers the entire component for slow data operations such as editing, inserting and deleting appointments.
51
+
***Scheduler** - a loading sign covers the data portion of the component for slow data operations such as editing, inserting and deleting appointments.
52
52
53
-
***TreeList** - a loading sign covers the entire component for slow data operations such as editing, inserting and deleting records. Expanding items with load-on-demand shows a loading indicator next to the item while the `OnExpand` event is running.
53
+
***TreeList** - a loading sign covers the data portion of the component for slow data operations such as editing, inserting and deleting records. Expanding items with load-on-demand shows a loading indicator next to the item while the `OnExpand` event is running.
54
54
55
55
***TreeView** - for expanding nodes with load-on-demand, a loading indicator is shown next to the item while the `OnExpand` event is running.
56
56
@@ -351,34 +351,20 @@ Truly asynchronous operations will still allow for a loading sign - such as the
351
351
352
352
We believe that having a loading sign that tells the user something is happening improves the user experience. This is why this feature is enabled by default on all data bound components that perform data operations.
353
353
354
-
We understand, however, that you might want to disable this feature in some cases. At the moment, you can use CSS to hide the loading indicator HTML. If you would like another implementation (such as a dedicated setting or more settings for the loader panel in general, let us know on our <ahref="https://feedback.telerik.com/blazor"target="_blank">feedback portal</a>).
354
+
We understand, however, that you might want to disable this feature in some cases. You can disable the large loading container that overlays the data portion of the components by setting their `EnableLoaderContainer` parameter to `false`.
355
355
356
-
>caption Remove the loading animation from the grid with CSS
356
+
>caption Remove the main loading animation from the grid with a parameter
357
357
358
358
````CSHTML
359
-
@* The CSS rule hides the loading sign. If you want to disable it for all grids, remove the custom Class from the grid declaration and the CSS rule.
360
-
In a similar fashion you can inspect the rendered HTML and target the element you want to hide for other components.
361
-
Make sure to have the proper cascade so that you do not break other components on the page you do not intend to affect. *@
362
-
363
-
<style>
364
-
.no-loader.k-grid .k-loader-container {
365
-
display: none !important;
366
-
}
367
-
</style>
359
+
@* The data operations (such as filtering, sorting, paging) are slow in this example, but there is no loading sign *@
@@ -440,6 +426,84 @@ Make sure to have the proper cascade so that you do not break other components o
440
426
}
441
427
````
442
428
429
+
There are some components that show small (inline) loading indicators, and you can hide those with CSS if you wish to remove them.
430
+
431
+
>caption How to hide inline loading signs with CSS (example with TreeView)
432
+
433
+
````CSHTML
434
+
@* The CSS rule hides the loading sign. If you want to disable it for all treeviews, remove the custom Class from the treeview declaration and the CSS rule.
435
+
In a similar fashion you can inspect the rendered HTML and target the element you want to hide for other components.
436
+
Make sure to have the proper cascade so that you do not break other components on the page you do not intend to affect. *@
Copy file name to clipboardExpand all lines: components/grid/overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ The following list of resources provides examples for data binding a grid in var
96
96
97
97
### Loading Animation
98
98
99
-
When the user performs data operations in the grid, the grid will display a loading sign over itself when it detects a long-running operation (over 120ms). This improves the user experience so they know they have to wait for the action to complete, and also prevents repeated actions.
99
+
When the user performs data operations in the grid, the grid will display a loading sign over itself when it detects a long-running operation (over 600ms). This improves the user experience so they know they have to wait for the action to complete, and also prevents repeated actions.
100
100
101
101
The operations include paging, filtering, sorting, grouping, expanding groups with load-on-demand; editing, inserting and deleting records.
0 commit comments