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: Document-Processing/Excel/Spreadsheet/Blazor/protection.md
+9-8Lines changed: 9 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
layout: post
3
-
title: Protect Sheet in Blazor Spreadsheet Component | Syncfusion
4
-
description: Checkout and learn here all about protect sheet in Syncfusion Blazor Spreadsheet component and more.
3
+
title: Protection in Blazor Spreadsheet Component | Syncfusion
4
+
description: Learn how to protect and unprotect worksheets and workbooks in the Syncfusion Blazor Spreadsheet component, both through the UI and more.
5
5
platform: document-processing
6
6
control: Spreadsheet
7
7
documentation: ug
@@ -11,17 +11,18 @@ documentation: ug
11
11
12
12
Sheet protection is used to prevent unauthorized modification of data within the sheet.
13
13
14
-
## Protect Sheet
14
+
## Sheet Protection
15
15
16
16
The **Protect Sheet** support helps prevent accidental changes such as editing, moving, or deleting data. Protection can be applied with or without a password, depending on the level of security required.
17
17
18
-
### Protecting sheets via the UI
18
+
### Protecting a sheet via the UI
19
19
20
-
In the active sheet, the sheet protection can be done by any of the following ways:
20
+
The active sheetcan be protected using any of the following ways:
21
21
22
-
* Select **Protect Sheet** from the **Review** tab in the Ribbon toolbar and choose the desired options.
22
+
* Navigate to the **Review** tab in the Ribbon and select **Protect Sheet**.
23
+
* Right-click the sheet's tab in the bottom bar and select **Protect Sheet** from the context menu.
23
24
24
-
* Right-click the sheet tab context menu option, select **Protect Sheet**from the context menu, and choose the desired options.
25
+
In the **Protect Sheet**dialog, you can set a password and specify which actions users are allowed to perform.
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Spreadsheet/Blazor/selection.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,39 +1,39 @@
1
1
---
2
2
layout: post
3
3
title: Selection in Blazor Spreadsheet Component | Syncfusion
4
-
description: Checkout and learn here all about comprehensive selection functionality in Syncfusion Blazor Spreadsheet componentand much more.
4
+
description: Learn about the comprehensive selection functionality in the Syncfusion Blazor Spreadsheet component, including programmatic and UI-driven methods.
5
5
platform: document-processing
6
6
control: Spreadsheet
7
7
documentation: ug
8
8
---
9
9
10
-
# Selection in Blazor Spreadsheet component
10
+
# Selection in Blazor Spreadsheet Component
11
11
12
12
The selection feature in the Spreadsheet component enables interactive highlighting and manipulation of cells, rows, or columns for data analysis and editing operations. The functionality offers intuitive mouse and keyboard interactions for efficient data management.
13
13
14
14
The Blazor Spreadsheet provides multiple selection options to manage and analyze data effectively:
15
15
16
-
***Cell Selection** - Select individual cells or ranges of cells for data manipulation
17
-
***Row Selection** - Select entire rows for row-based operations
18
-
***Column Selection** - Select entire columns for column-based operations
16
+
***Cell Selection**: Select individual cells or range of cells for data manipulation
17
+
***Row Selection**: Select entire rows for row-based operations
18
+
***Column Selection**: Select entire columns for column-based operations
19
19
20
20
**Accessing selection via the UI**
21
21
22
22
In the active sheet, selection can be performed using any of the following ways:
23
23
24
24
***Using Mouse Interaction**:
25
-
*Click to select individual cells
26
-
*Click and drag to select ranges
27
-
*Click row or column headers for full row or column selection
25
+
*Click a cell to select it.
26
+
*Click and drag to select a range of cells.
27
+
*Click a row or column header to select the entire row or column.
28
28
29
29
***Using Keyboard Navigation**:
30
-
* Use **Arrow** keys to navigate and select cells
30
+
* Use **Arrow** keys to navigate between cells
31
31
* Use **Shift + Arrow** keys for range selection
32
32
* Use **Ctrl + Click** for non-adjacent selections
33
33
34
-
***Using Name Box**: Enter cell references or range names and press **Enter** key to select the specified range.
34
+
***Using Name Box**: Enter a cell reference (e.g., `C5`) or a range (`A1:E5`) and press **Enter** key to select the specified range.
35
35
36
-
## Cell selection
36
+
## Cell Selection
37
37
38
38
The Blazor Spreadsheet component allows selecting individual cells or ranges of cells for various data operations. Cell selection forms the foundation of most Spreadsheet interactions and serves as the basis for data entry and formatting.
39
39
@@ -74,9 +74,9 @@ The column selection operation can be performed using the following methods:
74
74
***Non-adjacent columns**: Hold **Ctrl** while clicking individual column headers
75
75
***Range with keyboard**: Use **Shift + Arrow** keys after selecting the initial column
76
76
77
-
## Implementing selection programmatically
77
+
## Implementing Selection Programmatically
78
78
79
-
The Spreadsheet component supports comprehensive programmatic selection using the [SelectRangeAsync()](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_SelectRangeAsync_System_String_) method. This method accepts various range formats and selection patterns.
79
+
The Spreadsheet component supports programmatic selection for cells, rows, and columns using the [SelectRangeAsync()](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_SelectRangeAsync_System_String_) method. This method accepts various range formats and selection patterns.
80
80
81
81
{% tabs %}
82
82
{% highlight razor tabtitle="Index.razor" %}
@@ -113,4 +113,4 @@ The Spreadsheet component supports comprehensive programmatic selection using th
113
113
114
114
The following image illustrates the comprehensive selection capabilities available in the Blazor Spreadsheet component, including cell, row, and column selection using both mouse and keyboard interactions.
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Spreadsheet/Blazor/sorting.md
+22-21Lines changed: 22 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,22 +1,22 @@
1
1
---
2
2
layout: post
3
3
title: Sorting in Blazor Spreadsheet Component | Syncfusion
4
-
description: Checkout and learn here about sorting functionality in Syncfusion Blazor Spreadsheet component and much more.
4
+
description: Learn how to perform data sorting in the Blazor Spreadsheet component, including multi-column sorting, custom sort orders, and more.
5
5
platform: document-processing
6
-
component: Spreadsheet
6
+
control: Spreadsheet
7
7
documentation: ug
8
8
---
9
9
10
-
# Sorting in Blazor Spreadsheet component
10
+
# Sorting in Blazor Spreadsheet Component
11
11
12
-
The Blazor Spreadsheet component provides built-in sorting functionality that enables users to organize worksheet data in either ascending or descending order. This support is especially helpful for improving readability and simplifying data analysis by arranging content according to selected columns. The sorting behavior is controlled by the [`AllowSorting`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_AllowSorting) property, which is set to `true` by default. When `AllowSorting` is set to `false`, all sorting options are removed from the interface, including the Ribbon and Context Menu, and related API methods become inactive. Additionally, sorting is disabled if the worksheet is protected. For more information on worksheet protection, refer [here](./protection#protect-sheet).
12
+
The Blazor Spreadsheet component provides built-in sorting functionality that enables users to organize worksheet data in either ascending or descending order. This feature helps improve readability and simplifies data analysis by arranging content according to selected columns. The sorting behavior is controlled by the [`AllowSorting`](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_AllowSorting) property, which is set to `true` by default. When `AllowSorting` is set to `false`, all sorting options are removed from the interface, including the Ribbon and Context Menu, and related API methods become inactive. Additionally, sorting is disabled if the worksheet is protected. For more information on worksheet protection, refer to the [worksheet protection documentation](./protection#protect-sheet).
13
13
14
-
## Sort operations
14
+
## Sort Operations
15
15
16
-
The component supports two types of sort orders that help organize data for easier analysis and presentation:
16
+
The component supports two types of sort orders that help organize data for analysis and presentation:
17
17
18
-
***Ascending** - Arranges data from lowest to highest (A to Z, 0 to 9).
19
-
***Descending** - Arranges data from highest to lowest (Z to A, 9 to 0).
18
+
***Ascending**: Arranges data from lowest to highest (e.g., A to Z, 0 to 9).
19
+
***Descending**: Arranges data from highest to lowest (e.g., Z to A, 9 to 0).
20
20
21
21
### Sort via UI
22
22
@@ -27,45 +27,46 @@ Sorting can be performed through the user interface (UI) using any of the follow
27
27
- Select a cell or range of cells to sort.
28
28
- Click the **Home** tab in the **Ribbon**.
29
29
- Click the **Sort & Filter** icon.
30
-
- Choose either **Ascending** or **Descending** from the dropdown menu.
30
+
- Choose either **Sort Ascending** or **Sort Descending** from the dropdown menu.
31
31
32
32

33
33
34
34
**Using the Context Menu**
35
35
36
-
- Select a cell or range of cells to sort.
37
-
- Right-click on the selected range to open the context menu.
36
+
- Select a cell or a range of cells to sort.
37
+
- Right-click the selected range to open the context menu.
38
38
- Hover over the **Sort** option.
39
39
- Select either **Ascending** or **Descending** from the submenu.
40
40
41
41

42
42
43
43
**Using the Filter Dialog**
44
44
45
-
If filtering is enabled, sorting can also be performed using the filter dialog. This adds another layer of flexibility by allowing users to sort data directly through the filtered view. For more details on how filtering works in the Blazor Spreadsheet component, refer [here](./filtering).
45
+
If filtering is enabled, sorting can also be performed using the filter dialog. This adds another layer of flexibility by allowing users to sort data directly through the filtered view. For more details on how filtering works in the Blazor Spreadsheet component, refer to the [filtering documentation](./filtering).
46
+
46
47
47
-
- Apply **Filter** to the desired column.
48
-
- Click the filter icon in the column header.
48
+
- Apply a **Filter** to the desired column.
49
+
- Click the filter icon in a column header.
49
50
- In the filter dialog, choose either **Sort Ascending** or **Sort Descending**.
50
-
- The sort will be applied to the entire used range based on the selected column.
51
+
- The sort operation is applied to the entire used range based on the selected column.
51
52
52
53

53
54
54
55
### Sort by active cell
55
56
56
-
When a sort operation is performed without an explicitly selected range, the component automatically identifies the **used range** of the worksheet. The used range includes all contiguous cells that contain data. Sorting is applied to this range using the column of the **active cell** as the sort key.
57
+
When a sort operation is performed without an explicitly selected range, the component automatically identifies the **used range** of the worksheet. The used range includes all contiguous cells that contain data. Sorting is applied to this entire range using the column of the **active cell** as the sort key.
57
58
58
-
A**sort key** is the column whose values determine the order of the rows during sorting. It compares the values in this column and rearranges the rows accordingly.
59
+
The**sort key** is the column whose values determine the order of the rows during sorting. It compares the values in this column and rearranges the rows accordingly.
59
60
60
61
This behavior ensures that the entire dataset is sorted cohesively, preserving row integrity and preventing data misalignment.
61
62
62
63
**Example**
63
64
64
65
If the **active cell** is located in **Column C** and no range is selected, it's sorts all rows within the used range based on the values in **Column C**.
65
66
66
-
### Sort by selected range
67
+
### Sorting a Selected Range
67
68
68
-
When a specific range is selected before initiating a sort operation, the component restricts the sort to the selected range. The column of the active cell within the selected range is used as the sort key. This method allows targeted sorting of a subset of data without affecting the rest of the worksheet.
69
+
When a specific cell range is selected, the sort operation is restricted to that range. The column of the active cell within the selected range is used as the sort key. This method allows for targeted sorting of a subset a data without affecting the rest of the worksheet.
69
70
70
71
**Example**
71
72
@@ -103,8 +104,8 @@ The [SortRangeAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spr
103
104
104
105
public async Task SortData()
105
106
{
106
-
// Sorts the range B2:D5 in ascending order based on values in "Column B".
0 commit comments