|
1 | | ---- |
2 | | -title: Busy Indicators |
3 | | -page_title: Busy Indicators - WinForms VirtualGrid Control |
4 | | -description: Learn how you can use the built-in busy indicators functionality in WinForms VirtualGrid. |
5 | | -slug: winforms/virtualgrid/busy-indicators |
6 | | -tags: virtualgrid, busy, indicators |
7 | | -published: True |
8 | | -position: 16 |
9 | | ---- |
10 | | - |
11 | | -# Busy Indicators |
12 | | - |
13 | | -There are two ways to indicate that the grid need time to perform a specific operation. The first one is to show a waiting bar in front of __RadVirtualGrid__. This way the entire control will be unaccessible while the time consuming operation is executed. The second one is to show a waiting icon in the row header. This way you can indicate that a the data for a specific row is still not loaded. |
14 | | - |
15 | | -## WatingBar |
16 | | - |
17 | | -While this indicator is shown the entire grid is disabled. It is useful when the initial data loading requires more time. |
18 | | - |
19 | | ->caption Figure 1: WaitingBar in RadVirtualGrid enabled. |
20 | | -
|
21 | | - |
22 | | - |
23 | | -The following snippet shows how you can show/hide the waiting bar: |
24 | | - |
25 | | -{{source=..\SamplesCS\VirtualGrid\VirtualGridWaitingIndicators.cs region=WaitingBar}} |
26 | | -{{source=..\SamplesVB\VirtualGrid\VirtualGridWaitingIndicators.vb region=WaitingBar}} |
27 | | -````C# |
28 | | -radVirtualGrid1.MasterViewInfo.IsWaiting = true; |
29 | | -radVirtualGrid1.MasterViewInfo.IsWaiting = false; |
30 | | - |
31 | | -```` |
32 | | -````VB.NET |
33 | | -radVirtualGrid1.MasterViewInfo.IsWaiting = True |
34 | | -radVirtualGrid1.MasterViewInfo.IsWaiting = False |
35 | | - |
36 | | -```` |
37 | | - |
38 | | -{{endregion}} |
39 | | - |
40 | | - |
41 | | -## Waiting icon |
42 | | - |
43 | | -The waiting icon can be shown in each row header. With it you can indicate that the row data is still not loaded. |
44 | | - |
45 | | ->caption Figure 2: Busy indicators in RadVirtualGrid. |
46 | | -
|
47 | | - |
48 | | - |
49 | | - |
50 | | -The following snippet shows how you can show/hide the waiting icon: |
51 | | - |
52 | | -{{source=..\SamplesCS\VirtualGrid\VirtualGridWaitingIndicators.cs region=icon}} |
53 | | -{{source=..\SamplesVB\VirtualGrid\VirtualGridWaitingIndicators.vb region=icon}} |
54 | | -````C# |
55 | | -radVirtualGrid1.MasterViewInfo.StartRowWaiting(5); |
56 | | -radVirtualGrid1.MasterViewInfo.StopRowWaiting(5); |
57 | | - |
58 | | -```` |
59 | | -````VB.NET |
60 | | -radVirtualGrid1.MasterViewInfo.StartRowWaiting(5) |
61 | | -radVirtualGrid1.MasterViewInfo.StopRowWaiting(5) |
62 | | - |
63 | | -```` |
64 | | - |
65 | | -{{endregion}} |
66 | | - |
67 | | -# See Also |
68 | | -* [Copy/Paste/Cut]({%slug winforms/virtualgrid/copy-paste-cut%}) |
69 | | - |
70 | | -* [Scrolling]({%slug winforms/virtualgrid/scrolling%}) |
71 | | - |
72 | | -* [Getting Started]({%slug winforms/virtualgrid/getting-started%}) |
73 | | - |
74 | | -* [Overview]({%slug winforms/virtualgrid%}) |
75 | | - |
| 1 | +--- |
| 2 | +title: Busy Indicators |
| 3 | +page_title: Busy Indicators - WinForms VirtualGrid Control |
| 4 | +description: Learn how you can use the built-in busy indicators functionality in WinForms VirtualGrid. |
| 5 | +slug: winforms/virtualgrid/busy-indicators |
| 6 | +tags: virtualgrid, busy, indicators |
| 7 | +published: True |
| 8 | +position: 8 |
| 9 | +--- |
| 10 | + |
| 11 | +# Busy Indicators |
| 12 | + |
| 13 | +There are two ways to indicate that the grid need time to perform a specific operation. The first one is to show a waiting bar in front of __RadVirtualGrid__. This way the entire control will be unaccessible while the time consuming operation is executed. The second one is to show a waiting icon in the row header. This way you can indicate that a the data for a specific row is still not loaded. |
| 14 | + |
| 15 | +## WatingBar |
| 16 | + |
| 17 | +While this indicator is shown the entire grid is disabled. It is useful when the initial data loading requires more time. |
| 18 | + |
| 19 | +>caption Figure 1: WaitingBar in RadVirtualGrid enabled. |
| 20 | +
|
| 21 | + |
| 22 | + |
| 23 | +The following snippet shows how you can show/hide the waiting bar: |
| 24 | + |
| 25 | +{{source=..\SamplesCS\VirtualGrid\VirtualGridWaitingIndicators.cs region=WaitingBar}} |
| 26 | +{{source=..\SamplesVB\VirtualGrid\VirtualGridWaitingIndicators.vb region=WaitingBar}} |
| 27 | +````C# |
| 28 | +radVirtualGrid1.MasterViewInfo.IsWaiting = true; |
| 29 | +radVirtualGrid1.MasterViewInfo.IsWaiting = false; |
| 30 | + |
| 31 | +```` |
| 32 | +````VB.NET |
| 33 | +radVirtualGrid1.MasterViewInfo.IsWaiting = True |
| 34 | +radVirtualGrid1.MasterViewInfo.IsWaiting = False |
| 35 | + |
| 36 | +```` |
| 37 | + |
| 38 | +{{endregion}} |
| 39 | + |
| 40 | + |
| 41 | +## Waiting icon |
| 42 | + |
| 43 | +The waiting icon can be shown in each row header. With it you can indicate that the row data is still not loaded. |
| 44 | + |
| 45 | +>caption Figure 2: Busy indicators in RadVirtualGrid. |
| 46 | +
|
| 47 | + |
| 48 | + |
| 49 | + |
| 50 | +The following snippet shows how you can show/hide the waiting icon: |
| 51 | + |
| 52 | +{{source=..\SamplesCS\VirtualGrid\VirtualGridWaitingIndicators.cs region=icon}} |
| 53 | +{{source=..\SamplesVB\VirtualGrid\VirtualGridWaitingIndicators.vb region=icon}} |
| 54 | +````C# |
| 55 | +radVirtualGrid1.MasterViewInfo.StartRowWaiting(5); |
| 56 | +radVirtualGrid1.MasterViewInfo.StopRowWaiting(5); |
| 57 | + |
| 58 | +```` |
| 59 | +````VB.NET |
| 60 | +radVirtualGrid1.MasterViewInfo.StartRowWaiting(5) |
| 61 | +radVirtualGrid1.MasterViewInfo.StopRowWaiting(5) |
| 62 | + |
| 63 | +```` |
| 64 | + |
| 65 | +{{endregion}} |
| 66 | + |
| 67 | +# See Also |
| 68 | +* [Copy/Paste/Cut]({%slug winforms/virtualgrid/copy-paste-cut%}) |
| 69 | + |
| 70 | +* [Scrolling]({%slug winforms/virtualgrid/scrolling%}) |
| 71 | + |
| 72 | +* [Getting Started]({%slug winforms/virtualgrid/getting-started%}) |
| 73 | + |
| 74 | +* [Overview]({%slug winforms/virtualgrid%}) |
| 75 | + |
0 commit comments