Skip to content

Commit e7d6719

Browse files
Merge pull request #1432 from syncfusion-content/983001-DocumentChanges4
983001: Changes in Sorting,protection,Selection
2 parents a01a443 + d1259d9 commit e7d6719

File tree

3 files changed

+45
-43
lines changed

3 files changed

+45
-43
lines changed

Document-Processing/Excel/Spreadsheet/Blazor/protection.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
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.
55
platform: document-processing
66
control: Spreadsheet
77
documentation: ug
@@ -11,17 +11,18 @@ documentation: ug
1111

1212
Sheet protection is used to prevent unauthorized modification of data within the sheet.
1313

14-
## Protect Sheet
14+
## Sheet Protection
1515

1616
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.
1717

18-
### Protecting sheets via the UI
18+
### Protecting a sheet via the UI
1919

20-
In the active sheet, the sheet protection can be done by any of the following ways:
20+
The active sheet can be protected using any of the following ways:
2121

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.
2324

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.
2526

2627
![Protected Sheet Dialog](./images/protect-sheet.gif)
2728

@@ -107,4 +108,4 @@ To unprotect the workbook:
107108

108109
* Enter the correct password in the dialog box, then click **OK**.
109110

110-
![Unprotected Workbook Dialog](./images/unprotect-workbook.png)
111+
![Unprotected Workbook Dialog](./images/unprotect-workbook.png)

Document-Processing/Excel/Spreadsheet/Blazor/selection.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,39 @@
11
---
22
layout: post
33
title: Selection in Blazor Spreadsheet Component | Syncfusion
4-
description: Checkout and learn here all about comprehensive selection functionality in Syncfusion Blazor Spreadsheet component and much more.
4+
description: Learn about the comprehensive selection functionality in the Syncfusion Blazor Spreadsheet component, including programmatic and UI-driven methods.
55
platform: document-processing
66
control: Spreadsheet
77
documentation: ug
88
---
99

10-
# Selection in Blazor Spreadsheet component
10+
# Selection in Blazor Spreadsheet Component
1111

1212
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.
1313

1414
The Blazor Spreadsheet provides multiple selection options to manage and analyze data effectively:
1515

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
1919

2020
**Accessing selection via the UI**
2121

2222
In the active sheet, selection can be performed using any of the following ways:
2323

2424
* **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.
2828

2929
* **Using Keyboard Navigation**:
30-
* Use **Arrow** keys to navigate and select cells
30+
* Use **Arrow** keys to navigate between cells
3131
* Use **Shift + Arrow** keys for range selection
3232
* Use **Ctrl + Click** for non-adjacent selections
3333

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.
3535

36-
## Cell selection
36+
## Cell Selection
3737

3838
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.
3939

@@ -74,9 +74,9 @@ The column selection operation can be performed using the following methods:
7474
* **Non-adjacent columns**: Hold **Ctrl** while clicking individual column headers
7575
* **Range with keyboard**: Use **Shift + Arrow** keys after selecting the initial column
7676

77-
## Implementing selection programmatically
77+
## Implementing Selection Programmatically
7878

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.
8080

8181
{% tabs %}
8282
{% highlight razor tabtitle="Index.razor" %}
@@ -113,4 +113,4 @@ The Spreadsheet component supports comprehensive programmatic selection using th
113113

114114
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.
115115

116-
![Comprehensive selection operation](./images/selection-types.gif)
116+
![An animated GIF demonstrating cell, row, and column selection in the Syncfusion Blazor Spreadsheet.](./images/selection-types.gif)

Document-Processing/Excel/Spreadsheet/Blazor/sorting.md

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
---
22
layout: post
33
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.
55
platform: document-processing
6-
component: Spreadsheet
6+
control: Spreadsheet
77
documentation: ug
88
---
99

10-
# Sorting in Blazor Spreadsheet component
10+
# Sorting in Blazor Spreadsheet Component
1111

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).
1313

14-
## Sort operations
14+
## Sort Operations
1515

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:
1717

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).
2020

2121
### Sort via UI
2222

@@ -27,45 +27,46 @@ Sorting can be performed through the user interface (UI) using any of the follow
2727
- Select a cell or range of cells to sort.
2828
- Click the **Home** tab in the **Ribbon**.
2929
- 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.
3131

3232
![Sort option via Ribbon](./images/ribbon-sort.png)
3333

3434
**Using the Context Menu**
3535

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.
3838
- Hover over the **Sort** option.
3939
- Select either **Ascending** or **Descending** from the submenu.
4040

4141
![Sort option via Context Menu](./images/contextmenu-sort.png)
4242

4343
**Using the Filter Dialog**
4444

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+
4647

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.
4950
- 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.
5152

5253
![Sort option via Filter Dialog](./images/filter-dialog-sort.gif)
5354

5455
### Sort by active cell
5556

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.
5758

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.
5960

6061
This behavior ensures that the entire dataset is sorted cohesively, preserving row integrity and preventing data misalignment.
6162

6263
**Example**
6364

6465
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**.
6566

66-
### Sort by selected range
67+
### Sorting a Selected Range
6768

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.
6970

7071
**Example**
7172

@@ -103,8 +104,8 @@ The [SortRangeAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spr
103104

104105
public async Task SortData()
105106
{
106-
// Sorts the range B2:D5 in ascending order based on values in "Column B".
107-
await SpreadsheetInstance.SortRangeAsync("B2:D5", SortDirection.Ascending);
107+
// Sorts the range B2:D5 in ascending order based on values in "Column B".
108+
await SpreadsheetInstance.SortRangeAsync("B2:D5", SortDirection.Ascending);
108109
}
109110
}
110111

0 commit comments

Comments
 (0)