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/undo-redo.md
+13-5Lines changed: 13 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,9 +7,17 @@ control: Spreadsheet
7
7
documentation: ug
8
8
---
9
9
10
-
# Undo and Redo in Blazor Spreadsheet component
10
+
# Undo and Redo in Blazor Spreadsheet Component
11
11
12
-
The **Undo** and **Redo** functionality in the Blazor Spreadsheet component allows users to easily reverse or reapply recent actions. It maintains a history of spreadsheet operations, encouraging experimentation with data and formatting while preserving the ability to restore previous states. All major operations are supported, including cell editing, formatting, structural changes, and data manipulation. The keyboard shortcuts - **Ctrl + Z** for Undo and **Ctrl + Y** for Redo - provide quick access without interacting with interface elements.
12
+
The **Undo** and **Redo** functionality in the Blazor Spreadsheet component allows users to reverse or reapply recent actions. It maintains a history of spreadsheet operations, encouraging experimentation with data and formatting while preserving the ability to restore previous states.
13
+
14
+
Undo and Redo are supported for most common operations, including:
15
+
* Cell editing and formatting
16
+
* Structural changes (e.g., inserting or deleting rows/columns)
17
+
* Data manipulation (e.g., sorting and filtering)
18
+
* Resizing rows and columns
19
+
20
+
The keyboard shortcuts **Ctrl + Z** for Undo and **Ctrl + Y** for Redo provide quick access without requiring interaction with the user interface.
13
21
14
22
N> The undo and redo history is limited to **25 operations** to optimize memory usage; once this limit is reached, older actions are automatically discarded. Additionally, the history is cleared when worksheet protection is enabled.
15
23
@@ -28,9 +36,9 @@ N> The **Undo** button is automatically disabled when there are no reversible op
28
36
29
37
The **Redo** operation reapplies an action that was previously undone, allowing end users to move forward through the operation history and restore both data and interface states. Redo actions can be performed via the user interface in the following ways:
30
38
31
-
* Click the **Redo** button located in the **Home** tab of the **Ribbon** to reapply the most recently undone operation.
32
-
* Use the keyboard shortcut **Ctrl + Y** for quick access to redo the last undone action.
39
+
*Click the **Redo** button located in the **Home** tab of the **Ribbon** to reapply the most recently undone operation.
40
+
*Use the keyboard shortcut **Ctrl + Y** for quick access to redo the last undone action.
N> The **Redo** button is automatically disabled when no actions are available to reapply or when a cell is in editing mode. Additionally, the redo history is cleared whenever a new action is performed following an undo.
44
+
N> The **Redo** button is automatically disabled when no actions are available to reapply or when a cell is in edit mode. The redo history is cleared whenever a new action is performed after an undo.
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Spreadsheet/Blazor/worksheet.md
+39-39Lines changed: 39 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,29 +7,29 @@ control: Spreadsheet
7
7
documentation: ug
8
8
---
9
9
10
-
# Worksheet in Blazor Spreadsheet component
10
+
# Worksheet Operations in Blazor Spreadsheet Component
11
11
12
12
A worksheet is a collection of cells organized in the form of rows and columns that allows for storing, formatting, and manipulating data. This feature supports data organization across multiple sheets, making it suitable for scenarios like managing department-wise records, financial reports, or project data in separate sheets.
13
13
14
-
N> If the workbook is protected, operations like inserting, deleting, renaming, hiding, unhiding, moving, or duplicating sheets are disabled through both user interface (UI) and code. To know more about workbook protection, refer [here](./protection#protect-workbook).
14
+
N> If a workbook is protected, worksheet operations like inserting, deleting, renaming, hiding, unhiding, moving, or duplicating sheets are disabled through both the user interface (UI) and code. To know more about workbook protection, refer to the [Protect Workbook](./protection#protect-workbook) documentation.
15
15
16
-
## Insert sheet
16
+
## Insert Sheet
17
17
18
18
The Insert sheet feature in the Syncfusion Blazor Spreadsheet component allows adding new sheets to a workbook, enabling better organization of data across multiple sheets. This feature can be accessed through user interface (UI) or programmatically, offering flexibility based on the application's requirements.
19
19
20
-
### Insert sheet via UI
20
+
### Insert Sheet via UI
21
21
22
22
To add or insert a new sheet using the UI, follow these steps:
23
23
24
-
* Click the `+` icon button in the **Sheet** tab. This will insert a new empty sheet next to current active sheet.
25
-

24
+
*Click the `+` icon button in the **Sheet** tab. This will insert a new empty sheet next to current active sheet.
25
+

26
26
27
-
*Right click on a **Sheet** tab, and then select **Insert** option from the context menu to insert a new empty sheet after the current active sheet.
The [InsertSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_InsertSheetAsync_System_Nullable_System_Int32__System_Int32_) method allows adding one or more sheets to a workbook using code. It supports two main scenarios: adding multiple sheets with default names or adding a single sheet with a user-defined name. Below are the details for each scenario, including code examples and parameter information.
32
+
Use the [InsertSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_InsertSheetAsync_System_Nullable_System_Int32__System_Int32_) method to add one or more sheets to a workbook programmatically. It supports two main scenarios: adding multiple sheets with default names or adding a single sheet with a user-defined name. Below are the details for each scenario, including code examples and parameter information.
33
33
34
34
**Insert multiple sheets at a specific index**
35
35
@@ -111,29 +111,29 @@ This method adds one sheet at a specific position with a user-defined name. Each
111
111
{% endhighlight %}
112
112
{% endtabs %}
113
113
114
-
## Delete sheet
114
+
## Delete Sheet
115
115
116
-
The Spreadsheet component supports removing sheets from a spreadsheet. When the workbook contains only one sheet, the delete option is disabled in the user interface (UI), and no action occurs during programmatic deletion attempts. Sheets can be deleted using user interface (UI) or programmatically, based on application requirements.
116
+
The Spreadsheet component supports removing sheets from a workbook. When the workbook contains only one sheet, the delete option is disabled in the user interface (UI), and no action occurs during programmatic deletion attempts. Sheets can be deleted using user interface (UI) or programmatically, based on application requirements.
117
117
118
-
### Delete sheet via UI
118
+
### Delete Sheet via UI
119
119
120
120
To remove a sheet using the user interface (UI), follow these steps:
121
121
122
-
* Right click on a **Sheet** tab, and then select **Delete** option from context menu.
122
+
1. Right-click a **Sheet** tab, and then select **Delete** option from the context menu.
Sheets can be deleted at a specific index using the [DeleteSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_DeleteSheetAsync_System_Nullable_System_Int32__) method. It supports two main scenarios: delete sheet by index or delete sheet by name. Below are the details for each scenario, including code examples and parameter information.
133
133
134
134
**Delete sheet by index**
135
135
136
-
This method removes a sheet from a specific position. It works best when the sheet location in the workbook is known, such as when removing the first or last sheet through code. If no position is specified, the current active sheet gets deleted.
136
+
This method removes a sheet at a specific index. It works best when the sheet location in the workbook is known, such as when removing the first or last sheet through code. If no position is specified, the current active sheet gets deleted.
137
137
138
138
| Parameter | Type | Description |
139
139
| -- | -- | -- |
@@ -209,21 +209,21 @@ This method removes a sheet that matches the given name. It helps when the exact
209
209
{% endhighlight %}
210
210
{% endtabs %}
211
211
212
-
## Rename sheet
212
+
## Rename Sheet
213
213
214
-
The Rename Sheet feature allows assigning user-defined names to sheets for better organization. Sheet names must be unique within the workbook, and renaming does not affect data or formulas. This feature is essential for improving workbook clarity, especially in complex workbooks with multiple sheets.
214
+
The rename sheet feature allows assigning user-defined name to a sheet for better organization. Sheet names must be unique within the workbook, and renaming does not affect data or formulas. This feature is essential for improving workbook clarity, especially in complex workbooks with multiple sheets.
215
215
216
216
To rename a sheet:
217
217
218
-
* Right-click a **Sheet** tab and select **Rename** from the context menu.
218
+
1. Right-click a **Sheet** tab and select **Rename** from the context menu.
* Enter a new name and click **update** to confirm.
222
+
2. Enter a new name in the dialog and click **Update** to confirm.
223
223
224
-

224
+

225
225
226
-
## Hide sheet
226
+
## Hide Sheet
227
227
228
228
Hiding sheets in the Spreadsheet component prevents unauthorized access or accidental changes. Hidden sheets remain in the workbook, retaining all data, formulas, and functionality, but are not visible in the user interface (UI). To hide a sheet, right-click the **Sheet** tab and select **Hide** from the context menu.
229
229
@@ -237,30 +237,30 @@ Hiding sheets in the Spreadsheet component prevents unauthorized access or accid
The Spreadsheet component allows restoring hidden sheets to view, which appear in a disabled state within the sheet selection menu. To make a hidden sheet visible again, click on the **Sheet** tab list icon and then select the hidden sheet. Once selected, the sheet will reappear in the sheet tab collection and become available for editing.
The Spreadsheet component allows reordering sheets by moving them to different positions within the workbook. This feature helps organize sheets in a preferred sequence for better navigation and workflow efficiency. Sheets can be moved using user interface (UI) or programmatically, based on application needs.
249
249
250
-
### Move sheet via UI
250
+
### Move Sheet via UI
251
251
252
252
To move a sheet using the user interface (UI), follow these steps:
253
253
254
-
* Click and hold on a **Sheet** tab, then drag it to the desired position.
254
+
*Click and hold on a **Sheet** tab, then drag it to the desired position.
255
255
256
-
*Right click on a **Sheet** tab and select **Move Left** or **Move Right** options from the context menu to reposition the sheet accordingly.
256
+
* Right-click on a **Sheet** tab and select **Move Left** or **Move Right** options from the context menu to reposition the sheet accordingly.
257
257
258
258
N> **Move Right** is enabled only if a sheet exists to the right, and **Move Left** is enabled only if a sheet exists to the left.
259
259
260
260

261
261

262
262
263
-
### Move sheet programmatically
263
+
### Move Sheet Programmatically
264
264
265
265
The [MoveSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_MoveSheetAsync_System_Nullable_System_Int32__System_Int32_) method moves a sheet from one index to another programmatically. This method requires two parameters: the current zero-based index of the sheet to move and the destination zero-based index where the sheet will be placed. If either index is invalid (negative or beyond the sheet count), the method will not perform any action.
266
266
@@ -300,19 +300,19 @@ The [MoveSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spr
300
300
{% endhighlight %}
301
301
{% endtabs %}
302
302
303
-
## Duplicate sheet
303
+
## Duplicate Sheet
304
304
305
305
The Spreadsheet component allows creating an exact copy of a sheet, including all data, formatting, formulas, and styling. Duplicating a sheet is useful for creating multiple sheets with similar content or structure. The duplicated sheet is inserted immediately after the original sheet and is assigned a unique name, typically appending a number (e.g., "Sheet1" becomes "Sheet1 (2)"). Sheet duplication can be performed through user interface (UI) or programmatically, depending on application needs.
306
306
307
-
### Duplicate sheet via UI
307
+
### Duplicate Sheet via UI
308
308
309
309
To duplicate a sheet using the user interface (UI), simply right-click on the desired **Sheet** tab and choose the **Duplicate** option from the context menu.
The [DuplicateSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_DuplicateSheetAsync_System_Nullable_System_Int32__) method allows duplicating a sheet programmatically by specifying its index or name. The duplicated sheet is inserted immediately after the original sheet. Below are details for duplicating a sheet by index or by name, including parameter information and code examples.
315
+
Use the [DuplicateSheetAsync](https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.Spreadsheet.SfSpreadsheet.html#Syncfusion_Blazor_Spreadsheet_SfSpreadsheet_DuplicateSheetAsync_System_Nullable_System_Int32__) method to duplicate a worksheet programmatically by specifying its index or name. The duplicated sheet is inserted immediately after the original sheet. Below are details for duplicating a sheet by index or by name, including parameter information and code examples.
316
316
317
317
**Duplicate sheet by index**
318
318
@@ -359,7 +359,7 @@ This method creates a copy of the sheet with the specified name. The sheet name
359
359
360
360
| Parameter | Type | Description |
361
361
| -- | -- | -- |
362
-
| sheetName | string | The name of the sheet to duplicate. If the name does not exist, no action occurs. |
362
+
|`sheetName`|`string`| The name of the sheet to duplicate. If the name does not exist, no action occurs. |
363
363
364
364
{% tabs %}
365
365
{% highlight razor %}
@@ -384,10 +384,10 @@ This method creates a copy of the sheet with the specified name. The sheet name
0 commit comments