diff --git a/Document-Processing/Excel/Spreadsheet/Angular/cell-range.md b/Document-Processing/Excel/Spreadsheet/Angular/cell-range.md index c4e800488..4037bb051 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/cell-range.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/cell-range.md @@ -13,19 +13,19 @@ A group of cells in a sheet is known as cell range. ## Wrap text -Wrap text allows you to display large content as multiple lines in a single cell. By default, the wrap text support is enabled. Use the [`allowWrap`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowwrap) property to enable or disable the wrap text support in spreadsheet. +Wrap text allows you to display large content as multiple lines in a single cell. By default, the wrap text support is enabled. Use the [`allowWrap`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowwrap) property to enable or disable the wrap text support in spreadsheet. Wrap text can be applied or removed to a cell or range of cells in the following ways, * Using the `wrap` property in `cell`, you can enable or disable wrap text to a cell at initial load. * Select or deselect wrap button from ribbon toolbar to apply or remove the wrap text to the selected range. -* Using the [`wrap`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#wrap) method, you can apply or remove the wrap text once the component is loaded. +* Using the [`wrap`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#wrap) method, you can apply or remove the wrap text once the component is loaded. The following code example shows the wrap text functionality in spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/wrap-text-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/wrap-text-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -44,13 +44,13 @@ The following features have some limitations in wrap text: ## Merge cells -Merge cells allows users to span two or more cells in the same row or column into a single cell. When cells with multiple values are merged, top-left most cell data will be the data for the merged cell. By default, the merge cells option is enabled. Use [`allowMerge`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowmerge) property to enable or disable the merge cells option in spreadsheet. +Merge cells allows users to span two or more cells in the same row or column into a single cell. When cells with multiple values are merged, top-left most cell data will be the data for the merged cell. By default, the merge cells option is enabled. Use [`allowMerge`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowmerge) property to enable or disable the merge cells option in spreadsheet. You can merge the range of cells in the following ways, * Set the `rowSpan` and `colSpan` property in `cell` to merge the number of cells at initial load. * Select the range of cells and apply merge by selecting the desired option from ribbon toolbar. -* Use [`merge`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#merge) method to merge the range of cells, once the component is loaded. +* Use [`merge`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#merge) method to merge the range of cells, once the component is loaded. The available merge options in spreadsheet are, @@ -64,8 +64,8 @@ The available merge options in spreadsheet are, The following code example shows the merge cells operation in spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/merge-cells-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/merge-cells-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -84,7 +84,7 @@ The following features have some limitations in Merge: ## Data Validation -Data Validation is used to restrict the user from entering the invalid data. You can use the [`allowDataValidation`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowdatavalidation) property to enable or disable data validation. +Data Validation is used to restrict the user from entering the invalid data. You can use the [`allowDataValidation`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowdatavalidation) property to enable or disable data validation. > * The default value for `allowDataValidation` property is `true`. @@ -95,7 +95,7 @@ You can apply data validation to restrict the type of data or the values that us You can apply data validation by using one of the following ways, * Select the Data tab in the Ribbon toolbar, and then choose the Data Validation item. -* Use the [`addDataValidation()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#adddatavalidation) method programmatically. +* Use the [`addDataValidation()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#adddatavalidation) method programmatically. ### Clear Validation @@ -104,7 +104,7 @@ Clear validation feature is used to remove data validations from the specified r You can clear data validation rule by one of the following ways, * Select the Data tab in the Ribbon toolbar, and then choose the Clear Validation item. -* Use the [`removeDataValidation()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#removedatavalidation) method programmatically. +* Use the [`removeDataValidation()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#removedatavalidation) method programmatically. ### Highlight Invalid Data @@ -113,7 +113,7 @@ Highlight invalid data feature is used to highlight the previously entered inval You can highlight an invalid data by using one of the following ways, * Select the Data tab in the Ribbon toolbar, and then choose the Highlight Invalid Data item. -* Use the [`addInvalidHighlight()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#addinvalidhighlight) method programmatically. +* Use the [`addInvalidHighlight()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#addinvalidhighlight) method programmatically. ### Clear Highlighted Invalid Data @@ -122,11 +122,11 @@ Clear highlight feature is used to remove the highlight from invalid cells. You can clear the highlighted invalid data by using the following ways, * Select the Data tab in the Ribbon toolbar, and then choose the Clear Highlight item. -* Use the [`removeInvalidHighlight()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#removeinvalidhighlight) method programmatically. +* Use the [`removeInvalidHighlight()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#removeinvalidhighlight) method programmatically. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/data-validation-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/data-validation-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -149,13 +149,13 @@ When this rule is applied, the Spreadsheet evaluates the entered value against t You can apply custom data validation using two methods. * The first is through the Data Validation dialog in the Ribbon toolbar. Navigate to the Data tab, select the Data Validation option, and choose the Custom type from the Allow dropdown menu. -* The second method is programmatically, using the [`addDataValidation()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#adddatavalidation) method, which allows developers to set custom rules dynamically via code. +* The second method is programmatically, using the [`addDataValidation()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#adddatavalidation) method, which allows developers to set custom rules dynamically via code. The following code example demonstrates how to add custom data validation with a formula in a Spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/data-validation-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/data-validation-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -238,8 +238,8 @@ You can do this by one of the following ways, In the following sample, you can enable/disable the fill option on the button click event by using the `showFillOptions` property in `autoFillSettings`. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/autofill-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/autofill-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -265,7 +265,7 @@ Clear feature helps you to clear the cell contents (formulas and data), formats You can apply clear feature by using one of the following ways, * Select the clear icon in the Ribbon toolbar under the Home Tab. -* Using the [`clear()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#clear) method to clear the values. +* Using the [`clear()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#clear) method to clear the values. Clear has the following types in the spreadsheet, @@ -278,11 +278,11 @@ Clear has the following types in the spreadsheet, ### Methods -Clear the cell contents and formats in the Spreadsheet document by using the [clear](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#clear) method. The [clear](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#clear) method has `type` and `range` as parameters. The following code example shows how to clear the cell contents and formats in the button click event. +Clear the cell contents and formats in the Spreadsheet document by using the [clear](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#clear) method. The [clear](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#clear) method has `type` and `range` as parameters. The following code example shows how to clear the cell contents and formats in the button click event. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/clear-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/clear-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/clipboard.md b/Document-Processing/Excel/Spreadsheet/Angular/clipboard.md index ca6e72589..7c70da2fe 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/clipboard.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/clipboard.md @@ -9,7 +9,7 @@ documentation: ug # Clipboard in Angular Spreadsheet component -The Spreadsheet provides support for the clipboard operations (cut, copy, and paste). Clipboard operations can be enabled or disabled by setting the [`enableClipboard`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#enableclipboard) property in Spreadsheet. +The Spreadsheet provides support for the clipboard operations (cut, copy, and paste). Clipboard operations can be enabled or disabled by setting the [`enableClipboard`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#enableclipboard) property in Spreadsheet. > By default, the `enableClipboard` property is true. @@ -24,7 +24,7 @@ Cut can be done in one of the following ways. * Using Cut button in the Ribbon’s HOME tab to perform cut operation. * Using Cut option in the Context Menu. * Using `Ctrl + X` | `Command + X` keyboard shortcut. -* Using the [`cut`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#cut) method. +* Using the [`cut`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#cut) method. ## Copy @@ -37,7 +37,7 @@ Copy can be done in one of the following ways. * Using Copy button in the Ribbon’s HOME tab to perform copy operation. * Using Copy option in the Context Menu. * Using `Ctrl + C` | `Command + C` keyboard shortcut. -* Using the [`copy`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#copy) method. +* Using the [`copy`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#copy) method. ## Paste @@ -55,13 +55,13 @@ Paste can be done in one of the following ways. * Using Paste button in the Ribbon’s HOME tab to perform paste operation. * Using Paste option in the Context Menu. * Using `Ctrl + V` | `Command + V` keyboard shortcut. -* Using the [`paste`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#paste) method. +* Using the [`paste`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#paste) method. > If you use the Keyboard shortcut key for cut (`Ctrl + X`) | copy (`Ctrl + C`) from other sources, you should use `Ctrl + V` shortcut while pasting into the spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/clipboard-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/clipboard-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -73,11 +73,11 @@ Paste can be done in one of the following ways. ## Prevent the paste functionality -The following example shows, how to prevent the paste action in spreadsheet. In [`actionBegin`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#actionbegin) event, you can set `cancel` argument as false in paste request type. +The following example shows, how to prevent the paste action in spreadsheet. In [`actionBegin`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#actionbegin) event, you can set `cancel` argument as false in paste request type. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/clipboard-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/clipboard-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/comment.md b/Document-Processing/Excel/Spreadsheet/Angular/comment.md index 43f35f1b8..40bd6eb17 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/comment.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/comment.md @@ -174,8 +174,8 @@ You can bind **comment thread** to cells at initial load by providing a `comment In the below sample, comments are added to a specific cell using cell data binding. The "Comments" review pane is shown initially by enabling the `showCommentsPane` property, and comments are added using `updateCell` method in the `created` event. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/comment-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/comment-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/context-menu.md b/Document-Processing/Excel/Spreadsheet/Angular/context-menu.md index d03529353..4df55c024 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/context-menu.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/context-menu.md @@ -9,7 +9,7 @@ documentation: ug # Context menu in Angular Spreadsheet component -Context Menu is used to improve user interaction with Spreadsheet using the popup menu. This will open when right-clicking on Cell/Column Header/Row Header/ Pager in the Spreadsheet. You can use [`enableContextMenu`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#enablecontextmenu) property to enable/disable context menu. +Context Menu is used to improve user interaction with Spreadsheet using the popup menu. This will open when right-clicking on Cell/Column Header/Row Header/ Pager in the Spreadsheet. You can use [`enableContextMenu`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#enablecontextmenu) property to enable/disable context menu. > The default value for the `enableContextMenu` property is `true`. @@ -19,13 +19,13 @@ Please find the table below for default context menu items and their actions. | Context Menu items | Action | |-------|---------| -| [`Cut`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#cut) | Cut the selected cells data to the clipboard, you can select a cell where you want to move the data. | -| [`Copy`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#copy) | Copy the selected cells data to the clipboard, so that you can paste it to somewhere else. | -| [`Paste`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#paste) | Paste the data from clipboard to spreadsheet. | -| [`Paste Special`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#paste) | `Values` - Paste the data values from clipboard to spreadsheet. `Formats` - Paste the data formats from clipboard to spreadsheet. | -| [`Filter`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#filter) | Perform filtering to the selected cells based on an active cell’s value. | -| [`Sort`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#sort) | Perform sorting to the selected range of cells by ascending or descending. | -| [`Hyperlink`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#hyperlink) | Create a link in the spreadsheet to navigate to web links or cell reference within the sheet or other sheets in the Spreadsheet. | +| [`Cut`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#cut) | Cut the selected cells data to the clipboard, you can select a cell where you want to move the data. | +| [`Copy`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#copy) | Copy the selected cells data to the clipboard, so that you can paste it to somewhere else. | +| [`Paste`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#paste) | Paste the data from clipboard to spreadsheet. | +| [`Paste Special`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#paste) | `Values` - Paste the data values from clipboard to spreadsheet. `Formats` - Paste the data formats from clipboard to spreadsheet. | +| [`Filter`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#filter) | Perform filtering to the selected cells based on an active cell’s value. | +| [`Sort`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#sort) | Perform sorting to the selected range of cells by ascending or descending. | +| [`Hyperlink`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#hyperlink) | Create a link in the spreadsheet to navigate to web links or cell reference within the sheet or other sheets in the Spreadsheet. | ## Context Menu Items in Row Header / Column Header @@ -33,14 +33,14 @@ Please find the table below for default context menu items and their actions. | Context Menu items | Action | |-------|---------| -| [`Cut`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#cut) | Cut the selected row/column header data to the clipboard, you can select a cell where you want to move the data. | -| [`Copy`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#copy) | Copy the selected row/column header data to the clipboard, so that you can paste it to somewhere else. | -| [`Paste`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#paste) | Paste the data from clipboard to spreadsheet. | -| [`Paste Special`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#paste) | `Values` - Paste the data values from clipboard to spreadsheet. `Formats` - Paste the data formats from clipboard to spreadsheet. | -| [`Insert Rows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#insertrow) / [`Insert Columns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#insertcolumn) | Insert new rows or columns into the worksheet. | -| [`Delete Rows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#delete) / [`Delete Columns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#delete) | Delete existing rows or columns from the worksheet. | -| [`Hide Rows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#hiderow) / [`Hide Columns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#hidecolumn) | Hide the or and columns. | -| [`UnHide Rows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#hiderow) / [`UnHide Columns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#hidecolumn) | Show the hidden rows or columns. | +| [`Cut`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#cut) | Cut the selected row/column header data to the clipboard, you can select a cell where you want to move the data. | +| [`Copy`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#copy) | Copy the selected row/column header data to the clipboard, so that you can paste it to somewhere else. | +| [`Paste`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#paste) | Paste the data from clipboard to spreadsheet. | +| [`Paste Special`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#paste) | `Values` - Paste the data values from clipboard to spreadsheet. `Formats` - Paste the data formats from clipboard to spreadsheet. | +| [`Insert Rows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#insertrow) / [`Insert Columns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#insertcolumn) | Insert new rows or columns into the worksheet. | +| [`Delete Rows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#delete) / [`Delete Columns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#delete) | Delete existing rows or columns from the worksheet. | +| [`Hide Rows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#hiderow) / [`Hide Columns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#hidecolumn) | Hide the or and columns. | +| [`UnHide Rows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#hiderow) / [`UnHide Columns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#hidecolumn) | Show the hidden rows or columns. | ## Context Menu Items in Pager @@ -51,8 +51,8 @@ Please find the table below for default context menu items and their actions. | `Insert` | Insert a new worksheet in front of an existing worksheet in the spreadsheet. | | `Delete` | Delete the selected worksheet from the spreadsheet. | | `Rename` | Rename the selected worksheet. | -| [`Protect Sheet`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#protectsheet) | Prevent unwanted changes from others by limiting their ability to edit. | -| [`Hide`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#hide) |Hide the selected worksheet. | +| [`Protect Sheet`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#protectsheet) | Prevent unwanted changes from others by limiting their ability to edit. | +| [`Hide`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#hide) |Hide the selected worksheet. | ## Context Menu Customization @@ -64,13 +64,13 @@ You can perform the following context menu customization options in the spreadsh ### Add Context Menu Items -You can add the custom items in context menu using the [`addContextMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#addcontextmenuitems) in `contextmenuBeforeOpen` event +You can add the custom items in context menu using the [`addContextMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#addcontextmenuitems) in `contextmenuBeforeOpen` event In this demo, Custom Item is added after the Paste item in the context menu. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -82,13 +82,13 @@ In this demo, Custom Item is added after the Paste item in the context menu. ### Remove Context Menu Items -You can remove the items in context menu using the [`removeContextMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#removecontextmenuItems) in `contextmenuBeforeOpen` event +You can remove the items in context menu using the [`removeContextMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#removecontextmenuItems) in `contextmenuBeforeOpen` event In this demo, Insert Column item has been removed from the row/column header context menu. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -100,13 +100,13 @@ In this demo, Insert Column item has been removed from the row/column header con ### Enable/Disable Context Menu Items -You can enable/disable the items in context menu using the [`enableContextMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#enablecontextmenuItems) in `contextmenuBeforeOpen` event +You can enable/disable the items in context menu using the [`enableContextMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#enablecontextmenuItems) in `contextmenuBeforeOpen` event In this demo, Rename item is disabled in the pager context menu. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs3/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/contextmenu/addContextMenu-cs3/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/data-binding.md b/Document-Processing/Excel/Spreadsheet/Angular/data-binding.md index c1adfd666..4afc89401 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/data-binding.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/data-binding.md @@ -9,7 +9,7 @@ documentation: ug # Data binding in Angular Spreadsheet component -The Spreadsheet uses [`DataManager`](https://helpej2.syncfusion.com/angular/documentation/data/), which supports both RESTful JSON data services and local JavaScript object array binding to a range. The `dataSource` property can be assigned either with the instance of [`DataManager`](https://helpej2.syncfusion.com/angular/documentation/data/) or JavaScript object array collection. +The Spreadsheet uses [DataManager](https://helpej2.syncfusion.com/angular/documentation/data), which supports both RESTful JSON data services and local JavaScript object array binding to a range. The `dataSource` property can be assigned either with the instance of [DataManager](https://helpej2.syncfusion.com/angular/documentation/data) or JavaScript object array collection. > To bind data to a cell, use `cell data binding` support. @@ -20,8 +20,8 @@ To bind local data to the Spreadsheet, you can assign a JavaScript object array Refer to the following code example for local data binding. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/local-data-binding-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/local-data-binding-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -31,19 +31,19 @@ Refer to the following code example for local data binding. {% previewsample "/document-processing/samples/spreadsheet/angular/local-data-binding-cs1" %} -> The local data source can also be provided as an instance of the [`DataManager`](https://helpej2.syncfusion.com/angular/documentation/data/). By default, [`DataManager`](https://helpej2.syncfusion.com/angular/documentation/data/) uses [`JsonAdaptor`](https://ej2.syncfusion.com/angular/documentation/data/adaptors#json-adaptor) for local data-binding. +> The local data source can also be provided as an instance of the [DataManager](https://helpej2.syncfusion.com/angular/documentation/data). By default, [DataManager](https://helpej2.syncfusion.com/angular/documentation/data) uses [`JsonAdaptor`](https://ej2.syncfusion.com/angular/documentation/data/adaptors#json-adaptor) for local data-binding. ### Customizing column data mapping -By default, when a data source is bound to a sheet, columns are auto-assigned from the data source fields sequentially. This means that the first field in the data source is assigned to Column A, the second to Column B, and so on, sequentially. However, now you can customize the column assignments by specifying the appropriate field names in the desired order using the [fieldsOrder](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/rangeModel/#fieldsorder) property. +By default, when a data source is bound to a sheet, columns are auto-assigned from the data source fields sequentially. This means that the first field in the data source is assigned to Column A, the second to Column B, and so on, sequentially. However, now you can customize the column assignments by specifying the appropriate field names in the desired order using the [fieldsOrder](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/rangemodel#fieldsorder) property. > You can customize the mapping of column data only in the local data binding support. The following code example demonstrates how to customize the mapping of column data: {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/field-mapping-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/field-mapping-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -55,13 +55,13 @@ The following code example demonstrates how to customize the mapping of column d ## Remote data -To bind remote data to the Spreadsheet control, assign service data as an instance of [`DataManager`](https://helpej2.syncfusion.com/angular/documentation/data/) to the `dataSource` property. To interact with remote data source, provide the service endpoint `url`. +To bind remote data to the Spreadsheet control, assign service data as an instance of [DataManager](https://helpej2.syncfusion.com/angular/documentation/data) to the `dataSource` property. To interact with remote data source, provide the service endpoint `url`. Refer to the following code example for remote data binding. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/remote-data-binding-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/remote-data-binding-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -78,8 +78,8 @@ Refer to the following code example for remote data binding. `OData` is a standardized protocol for creating and consuming data. You can retrieve data from OData service using the DataManager. Refer to the following code example for remote Data binding using OData service. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/remote-data-binding-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/remote-data-binding-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -94,8 +94,8 @@ Refer to the following code example for remote data binding. You can use WebApiAdaptor to bind spreadsheet with Web API created using OData endpoint. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/remote-data-binding-cs3/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/remote-data-binding-cs3/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -107,13 +107,13 @@ You can use WebApiAdaptor to bind spreadsheet with Web API created using OData e ## Cell data binding -The Spreadsheet control can bind the data to individual cell in a sheet . To achive this you can use the `value` property. +The Spreadsheet control can bind the data to individual cell in a sheet . To achieve this you can use the `value` property. Refer to the following code example for cell data binding. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/cell-data-binding-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/cell-data-binding-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -142,8 +142,8 @@ The following table defines the arguments of the `dataSourceChanged` event. > For inserting a row at the end of the datasource range, you should insert a row below at the end of the range to trigger the `dataSourceChanged` event with action `add`. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/dynamic-data-binding-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/dynamic-data-binding-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -155,15 +155,15 @@ The following table defines the arguments of the `dataSourceChanged` event. ## Dynamic data binding using updateRange method -The [updateRange](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#updaterange) method allows you to dynamically update the [dataSource](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/rangeModel/#datasource) in a spreadsheet without manually iterating through each cell. This method is especially useful for efficiently applying bulk updates to a specific range within the spreadsheet. +The [updateRange](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#updaterange) method allows you to dynamically update the [dataSource](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/rangemodel#datasource) in a spreadsheet without manually iterating through each cell. This method is especially useful for efficiently applying bulk updates to a specific range within the spreadsheet. -To use the [updateRange](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#updaterange) method, provide the new [dataSource](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/rangeModel/#datasource) and specify the starting cell for the update using the [startCell](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/rangeModel/#startcell) property of the `RangeDirective`. Additionally, set the `sheetIndex` to target the appropriate sheet for the update. +To use the [updateRange](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#updaterange) method, provide the new [dataSource](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/rangemodel#datasource) and specify the starting cell for the update using the [startCell](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/rangemodel#startcell) property of the `RangeDirective`. Additionally, set the `sheetIndex` to target the appropriate sheet for the update. -The following code example demonstrates how to dynamically update data using the [updateRange](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#updaterange) method. +The following code example demonstrates how to dynamically update data using the [updateRange](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#updaterange) method. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/dynamic-data-binding-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/dynamic-data-binding-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/editing.md b/Document-Processing/Excel/Spreadsheet/Angular/editing.md index e510bad2a..975336045 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/editing.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/editing.md @@ -9,7 +9,7 @@ documentation: ug # Editing in Angular Spreadsheet component -You can edit the contents of a cell directly in the cell or by typing in the formula bar. By default, the editing feature is enabled in the spreadsheet. Use the [`allowEditing`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowediting) property to enable or disable the editing feature. +You can edit the contents of a cell directly in the cell or by typing in the formula bar. By default, the editing feature is enabled in the spreadsheet. Use the [`allowEditing`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowediting) property to enable or disable the editing feature. ## Edit cell @@ -19,7 +19,7 @@ You can start editing by one of the following ways, * Press `F2` key to edit the active cell. * Use formula bar to perform editing. * Use `BACKSPACE` or `SPACE` key to clear the cell content and start the edit mode. -* Using the [`startEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#startedit) method. +* Using the [`startEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#startedit) method. ## Save cell @@ -27,20 +27,20 @@ If the cell is in editable state, you can save the edited cell by one of the fol * Perform mouse click on any other cell rather than the current editing cell. * Press `Enter` or `Tab` keys to save the edited cell content. -* Using the [`endEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#endedit) method. +* Using the [`endEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#endedit) method. ## Cancel editing To cancel the editing without saving the changes, you can use one of the following ways, * Press `ESCAPE` key, this will remove the editable state and update the unchanged cell content. -* Using the [`closeEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#closeedit) method. +* Using the [`closeEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#closeedit) method. -The following sample shows how to prevent the editing and cell save. Here `E` column prevent the editing by using cancel argument as true in [`cellEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#celledit) event. In `D` column, prevent saving the edited changes by using cancel argument as true in [`beforeCellSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforecellsave) and use [`closeEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#closeedit) method in spreadsheet. +The following sample shows how to prevent the editing and cell save. Here `E` column prevent the editing by using cancel argument as true in [`cellEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#celledit) event. In `D` column, prevent saving the edited changes by using cancel argument as true in [`beforeCellSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforecellsave) and use [`closeEdit`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#closeedit) method in spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/editing-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/editing-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/filter.md b/Document-Processing/Excel/Spreadsheet/Angular/filter.md index d13ebdf21..1cec3dc3f 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/filter.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/filter.md @@ -9,7 +9,7 @@ documentation: ug # Filter in Angular Spreadsheet component -Filtering helps you to view specific rows in the spreadsheet by hiding the other rows. You can use the [`allowFiltering`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowfiltering) property to enable or disable filtering functionality. +Filtering helps you to view specific rows in the spreadsheet by hiding the other rows. You can use the [`allowFiltering`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowfiltering) property to enable or disable filtering functionality. > * The default value for `allowFiltering` property is `true`. @@ -21,23 +21,23 @@ In the active Spreadsheet, select a range of cells to filter by value of the cel * Select the filter item in the Ribbon toolbar. * Right-click the sheet, select the filter item in the context menu. -* Use the [`applyFilter()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#applyfilter) method programmatically. +* Use the [`applyFilter()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#applyfilter) method programmatically. * Use `Ctrl + Shift + L` keyboard shortcut to apply the filter. > * Use `Alt + Up/Down` keyboard shortcut to open the filter dialog. ## Filter by criteria -The [`applyFilter()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#applyfilter) method will apply the filter UI, based on the predicate and range given in the arguments. +The [`applyFilter()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#applyfilter) method will apply the filter UI, based on the predicate and range given in the arguments. -> * The [`beforeFilter`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforefilter) event will be triggered before filtering the specified range. -> * The [`filterComplete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#filtercomplete) event will be triggered after the filter action is completed successfully. +> * The [`beforeFilter`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforefilter) event will be triggered before filtering the specified range. +> * The [`filterComplete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#filtercomplete) event will be triggered after the filter action is completed successfully. The following code example shows `filter` functionality in the Spreadsheet control. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/filter-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/filter-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -81,13 +81,13 @@ The following errors have been handled for filtering, ## Get data from filtered rows -Filtering allows you to view specific rows in a spreadsheet while hiding the others. The [`allowFiltering`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowfiltering) property allows you to enable or disable filtering functionality through the UI. You can also use the [`allowFiltering`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowfiltering) property and [`applyFilter`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#applyfilter) method combination to filter data via code behind. The filtered rows can be identified by iterating through the row collection on the sheet and using the `isFiltered` property available in each row object. +Filtering allows you to view specific rows in a spreadsheet while hiding the others. The [`allowFiltering`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowfiltering) property allows you to enable or disable filtering functionality through the UI. You can also use the [`allowFiltering`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowfiltering) property and [`applyFilter`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#applyfilter) method combination to filter data via code behind. The filtered rows can be identified by iterating through the row collection on the sheet and using the `isFiltered` property available in each row object. The following code example shows how to get the filtered rows. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/filter-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/filter-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/formatting.md b/Document-Processing/Excel/Spreadsheet/Angular/formatting.md index ce6fce8f8..bc113054c 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/formatting.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/formatting.md @@ -16,7 +16,7 @@ Formatting options make your data easier to view and understand. The different t ## Number Formatting -Number formatting provides a type for your data in the Spreadsheet. Use the [`allowNumberFormatting`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allownumberformatting) property to enable or disable the number formatting option in the Spreadsheet. The different types of number formatting supported in Spreadsheet are, +Number formatting provides a type for your data in the Spreadsheet. Use the [`allowNumberFormatting`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allownumberformatting) property to enable or disable the number formatting option in the Spreadsheet. The different types of number formatting supported in Spreadsheet are, | Types | Format Code | Format ID | |---------|---------|---------| @@ -34,7 +34,7 @@ Number formatting provides a type for your data in the Spreadsheet. Use the [`al Number formatting can be applied in following ways, * Using the `format` property in `cell`, you can set the desired format to each cell at initial load. -* Using the [`numberFormat`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#numberformat) method, you can set the number format to a cell or range of cells. +* Using the [`numberFormat`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#numberformat) method, you can set the number format to a cell or range of cells. * Selecting the number format option from ribbon toolbar. ### Custom Number Formatting @@ -83,14 +83,14 @@ The different types of custom number format populated in the custom number forma | Accounting | `_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)` | 43 | Custom Number formatting can be applied in following ways, -* Using the [`numberFormat`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#numberformat) method, you can set your own custom number format to a cell or range of cells. +* Using the [`numberFormat`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#numberformat) method, you can set your own custom number format to a cell or range of cells. * Selecting the custom number format option from custom number formats dialog or type your own format in dialog input and then click apply button. It will apply the custom format for selected cells. The following code example shows the number formatting in cell data. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/format/number-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/format/number-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -144,8 +144,8 @@ configureLocalizedFormat(this.spreadsheetObj, deLocaleFormats); The following code example demonstrates how to configure culture-based formats for different cultures in the spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/format/globalization-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/format/globalization-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -157,9 +157,9 @@ The following code example demonstrates how to configure culture-based formats f ## Text and cell formatting -Text and cell formatting enhances the look and feel of your cell. It helps to highlight a particular cell or range of cells from a whole workbook. You can apply formats like font size, font family, font color, text alignment, border etc. to a cell or range of cells. Use the [`allowCellFormatting`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowcellformatting) property to enable or disable the text and cell formatting option in Spreadsheet. You can set the formats in following ways, +Text and cell formatting enhances the look and feel of your cell. It helps to highlight a particular cell or range of cells from a whole workbook. You can apply formats like font size, font family, font color, text alignment, border etc. to a cell or range of cells. Use the [`allowCellFormatting`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowcellformatting) property to enable or disable the text and cell formatting option in Spreadsheet. You can set the formats in following ways, * Using the `style` property, you can set formats to each cell at initial load. -* Using the [`cellFormat`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#cellformat) method, you can set formats to a cell or range of cells. +* Using the [`cellFormat`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#cellformat) method, you can set formats to a cell or range of cells. * You can also apply by clicking the desired format option from the ribbon toolbar. ### Fonts @@ -215,8 +215,8 @@ Borders can be applied in the following ways, The following code example shows the style formatting in text and cells of the spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/format/number-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/format/number-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -235,7 +235,7 @@ The following features are not supported in Formatting: ## Conditional Formatting -Conditional formatting helps you to format a cell or range of cells based on the conditions applied. You can enable or disable conditional formats by using the [`allowConditionalFormat`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowconditionalformat) property. +Conditional formatting helps you to format a cell or range of cells based on the conditions applied. You can enable or disable conditional formats by using the [`allowConditionalFormat`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowconditionalformat) property. > * The default value for the `allowConditionalFormat` property is `true`. @@ -244,7 +244,7 @@ Conditional formatting helps you to format a cell or range of cells based on the You can apply conditional formatting by using one of the following ways, * Select the conditional formatting icon in the Ribbon toolbar under the Home Tab. -* Using the [`conditionalFormat()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#conditionalformat) method to define the condition. +* Using the [`conditionalFormat()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#conditionalformat) method to define the condition. * Using the `conditionalFormats` in sheets model. Conditional formatting has the following types in the spreadsheet, @@ -310,11 +310,11 @@ In the MAY and JUN columns, we have applied conditional formatting custom format You can clear the defined rules by using one of the following ways, * Using the “Clear Rules” option in the Conditional Formatting button of HOME Tab in the ribbon to clear the rule from selected cells. -* Using the [`clearConditionalFormat()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#clearconditionalformat) method to clear the defined rules. +* Using the [`clearConditionalFormat()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#clearconditionalformat) method to clear the defined rules. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/conditional-formatting-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/conditional-formatting-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/formulas.md b/Document-Processing/Excel/Spreadsheet/Angular/formulas.md index f0f98ebd6..7e2d1fb6e 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/formulas.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/formulas.md @@ -18,7 +18,7 @@ You can set formula for a cell in the following ways, * Using the `formula` property from `cell`, you can set the formula or expression to each cell at initial load. * Set the formula or expression through data binding. * You can set formula for a cell by [`editing`](./editing). -* Using the [`updateCell`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#updatecell) method, you can set or update the cell formula. +* Using the [`updateCell`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#updatecell) method, you can set or update the cell formula. ## Culture-Based Argument Separator @@ -26,13 +26,13 @@ Previously, although you could import culture-based Excel files into the Spreads > Before importing culture-based Excel files, ensure that the Spreadsheet component is rendered with the corresponding culture. Additionally, launch the import/export services with the same culture to ensure compatibility. -When loading spreadsheet data with culture-based formula argument separators using cell data binding, local/remote data, or JSON, ensure to set the [listSeparator](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#listseparator) property value as the culture-based list separator from your end. Additionally, note that when importing an Excel file, the [listSeparator](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#listseparator) property will be updated based on the culture of the launched import/export service. +When loading spreadsheet data with culture-based formula argument separators using cell data binding, local/remote data, or JSON, ensure to set the [listSeparator](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#listseparator) property value as the culture-based list separator from your end. Additionally, note that when importing an Excel file, the [listSeparator](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#listseparator) property will be updated based on the culture of the launched import/export service. In the example below, the Spreadsheet component is rendered with the `German culture (de)`. Additionally, you can find references on how to set the culture-based argument separator and culture-based formatted numeric value as arguments to the formulas. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/formula-cs3/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/formula-cs3/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -46,13 +46,13 @@ In the example below, the Spreadsheet component is rendered with the `German cul The Spreadsheet includes a number of built-in formulas. For your convenience, a list of supported formulas can be found [here](https://help.syncfusion.com/document-processing/excel/spreadsheet/angular/formulas#supported-formulas). -You can define and use an unsupported formula, i.e. a user defined/custom formula, in the spreadsheet by using the [addCustomFunction](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#addcustomfunction) function. Meanwhile, remember that you should define a user defined/custom formula whose results should only return a single value. If a user-defined/custom formula returns an array, it will be time-consuming to update adjacent cell values. +You can define and use an unsupported formula, i.e. a user defined/custom formula, in the spreadsheet by using the [addCustomFunction](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#addcustomfunction) function. Meanwhile, remember that you should define a user defined/custom formula whose results should only return a single value. If a user-defined/custom formula returns an array, it will be time-consuming to update adjacent cell values. The following code example shows an unsupported formula in the spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/formula-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/formula-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -62,13 +62,13 @@ The following code example shows an unsupported formula in the spreadsheet. {% previewsample "/document-processing/samples/spreadsheet/angular/formula-cs1" %} -Second, if you want to directly compute any formula or expression, you can use the [computeExpression](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#computeexpression) method. This method will work for both built-in and used-defined/custom formula. +Second, if you want to directly compute any formula or expression, you can use the [computeExpression](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#computeexpression) method. This method will work for both built-in and used-defined/custom formula. The following code example shows how to use `computeExpression` method in the spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/formula-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/formula-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -80,22 +80,22 @@ The following code example shows how to use `computeExpression` method in the sp ## Formula bar -Formula bar is used to edit or enter cell data in much easier way. By default, the formula bar is enabled in the spreadsheet. Use the [`showFormulaBar`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#showformulabar) property to enable or disable the formula bar. +Formula bar is used to edit or enter cell data in much easier way. By default, the formula bar is enabled in the spreadsheet. Use the [`showFormulaBar`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#showformulabar) property to enable or disable the formula bar. ## Named Ranges You can define a meaningful name for a cell range and use it in the formula for calculation. It makes your formula much easier to understand and maintain. You can add named ranges to the Spreadsheet in the following ways, -* Using the [`definedNames`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#definednames) collection, you can add multiple named ranges at initial load. -* Use the [`addDefinedName`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#adddefinedname) method to add a named range dynamically. -* You can remove an added named range dynamically using the [`removeDefinedName`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#removedefinedname) method. +* Using the [`definedNames`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#definednames) collection, you can add multiple named ranges at initial load. +* Use the [`addDefinedName`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#adddefinedname) method to add a named range dynamically. +* You can remove an added named range dynamically using the [`removeDefinedName`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#removedefinedname) method. * Select the range of cells, and then enter the name for the selected range in the name box. The following code example shows the usage of named ranges support. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/defined-name-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/defined-name-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -112,19 +112,19 @@ The Spreadsheet provides a `Calculation Mode` feature like the calculation optio * `Automatic`: Formulas are recalculated instantly whenever a change occurs in the dependent cells. * `Manual`: Formulas are recalculated only when triggered explicitly by the user using options like `Calculate Sheet` or `Calculate Workbook`. -You can configure the calculate mode using the [`calculationMode`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#calculationmode) property of the Spreadsheet. These modes offer flexibility to balance real-time updates and performance optimization. +You can configure the calculate mode using the [`calculationMode`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#calculationmode) property of the Spreadsheet. These modes offer flexibility to balance real-time updates and performance optimization. ### Automatic Mode In Automatic Mode, formulas are recalculated instantly whenever a dependent cell is modified. This mode is perfect for scenarios where real-time updates are essential, ensuring that users see the latest results without additional actions. -For example, consider a spreadsheet where cell `C1` contains the formula `=A1+B1`. When the value in `A1` or `B1` changes, `C1` updates immediately without requiring any user intervention. You can enable this mode by setting the [`calculationMode`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#calculationmode) property to `Automatic`. +For example, consider a spreadsheet where cell `C1` contains the formula `=A1+B1`. When the value in `A1` or `B1` changes, `C1` updates immediately without requiring any user intervention. You can enable this mode by setting the [`calculationMode`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#calculationmode) property to `Automatic`. The following code example demonstrates how to set the Automatic calculation mode in a Spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/calculation-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/calculation-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -146,8 +146,8 @@ For example, imagine a spreadsheet where cell `C1` contains the formula `=A1+B1` The following code example demonstrates how to set the Manual calculation mode in a Spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/calculation-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/calculation-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/freeze-pane.md b/Document-Processing/Excel/Spreadsheet/Angular/freeze-pane.md index a23f14035..9f7bafddc 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/freeze-pane.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/freeze-pane.md @@ -9,16 +9,16 @@ documentation: ug # Freeze pane in Angular Spreadsheet component -Freeze Panes helps you to keep particular rows or columns visible when scrolling the sheet content in the spreadsheet. You can specify the number of frozen rows and columns using the [`frozenRows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#frozenrows) and [`frozenColumns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#frozencolumns) properties inside the [`Sheet`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet#sheets) property. +Freeze Panes helps you to keep particular rows or columns visible when scrolling the sheet content in the spreadsheet. You can specify the number of frozen rows and columns using the [`frozenRows`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#frozenrows) and [`frozenColumns`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#frozencolumns) properties inside the [`Sheet`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet#sheets) property. -## Apply freezepanes on UI +## Apply freeze panes on UI **User Interface**: In the active spreadsheet, click the cell where you want to create freeze panes. Freeze panes can be done in any of the following ways: * Select the View tab in the Ribbon toolbar and choose the `Freeze Panes` item. -* Use the [`freezePanes`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#freezepanes) method programmatically. +* Use the [`freezePanes`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#freezepanes) method programmatically. ## FrozenRows @@ -45,8 +45,8 @@ In the active spreadsheet, select the cell where you want to create frozen colum In this demo, the frozenColumns is set as ‘2’, and the frozenRows is set as ‘2’. Hence, the two columns on the left and the top two rows are frozen. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/freezepane-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/freezepane-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/getting-started.md b/Document-Processing/Excel/Spreadsheet/Angular/getting-started.md index cbb25b052..3dd6d909d 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/getting-started.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/getting-started.md @@ -15,6 +15,10 @@ To get start quickly with Angular Spreadsheet using CLI, you can check on this v {% youtube "https://www.youtube.com/watch?v=2Ozwe37X-7Q" %} +## Prerequisites + +Ensure your development environment meets the [`System Requirements for Syncfusion® Angular Spreadsheet component`](https://help.syncfusion.com/document-processing/system-requirements). + ## Dependencies The following list of dependencies are required to use the Spreadsheet component in your application. @@ -59,6 +63,14 @@ This command prompts you to configure settings such as whether to include Angula By default, it will create a CSS-based application. +During project setup, when prompted for the Server-side rendering (SSR) option, choose the appropriate configuration. + +![Spreadsheet showing a comment](./images/gettingstarted_SSR.png) + +Select the required AI tool or ‘none’ if you do not need any AI tool. + +![Spreadsheet showing a comment](./images/gettingstarted_AI.png) + Navigate to the created application folder: ```bash @@ -127,7 +139,7 @@ This can be referenced in `[src/styles.css]` using following code. ## Add Spreadsheet component -Modify the template in [src/app/app.component.ts] file to render the spreadsheet component. Add the Angular Spreadsheet by using `` selector in template section of the `app.component.ts` file. +Modify the template in [src/app/app.ts] file to render the spreadsheet component. Add the Angular Spreadsheet by using `` selector in template section of the `app.ts` file. ```typescript import { Component } from '@angular/core'; @@ -156,8 +168,8 @@ ng serve The following example shows a basic Spreadsheet component {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/spreadsheet-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/spreadsheet-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/global-local.md b/Document-Processing/Excel/Spreadsheet/Angular/global-local.md index e9761547b..dac37ff77 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/global-local.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/global-local.md @@ -11,7 +11,7 @@ documentation: ug ## Localization -The [`Localization`](https://helpej2.syncfusion.com/angular/documentation/common/globalization/localization) library allows you to localize the default text content of the Spreadsheet. The Spreadsheet has static text on some features (cell formatting, Merge, Data validation, etc.) that can be changed to other cultures (Arabic, Deutsch, French, etc.) by defining the [`locale`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#locale) value and translation object. +The [Localization](https://helpej2.syncfusion.com/angular/documentation/common/globalization/localization) library allows you to localize the default text content of the Spreadsheet. The Spreadsheet has static text on some features (cell formatting, Merge, Data validation, etc.) that can be changed to other cultures (Arabic, Deutsch, French, etc.) by defining the [`locale`]https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#locale) value and translation object. The following list of properties and their values are used in the Spreadsheet. @@ -381,8 +381,8 @@ To load translation object in an application, use [`load`](https://helpej2.syncf The following example demonstrates the Spreadsheet in `French` culture. In the below sample we have translated the ribbon tab names and Home tab content (clipboard, cell style). {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/local-data-binding-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/local-data-binding-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -410,8 +410,8 @@ You need to load culture format files in **ngOnInit** function. The following example demonstrates the Spreadsheet in French [ `fr-CH`] culture. In the below sample we have globalized the Date(Date column), Time(Time column), and Currency(Amount column) formats. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/internationalization-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/internationalization-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -423,11 +423,11 @@ The following example demonstrates the Spreadsheet in French [ `fr-CH`] culture. ## Right to left (RTL) -RTL provides an option to switch the text direction and layout of the Spreadsheet component from right to left. It improves the user experiences and accessibility for users who use right-to-left languages (Arabic, Farsi, Urdu, etc.). To enable RTL Spreadsheet, set the [`enableRtl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#enablertl) to true. +RTL provides an option to switch the text direction and layout of the Spreadsheet component from right to left. It improves the user experiences and accessibility for users who use right-to-left languages (Arabic, Farsi, Urdu, etc.). To enable RTL Spreadsheet, set the [`enableRtl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#enablertl) to true. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/local-data-binding-cs3/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/local-data-binding-cs3/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/how-to/change-active-sheet.md b/Document-Processing/Excel/Spreadsheet/Angular/how-to/change-active-sheet.md index f4fa2020f..45a3f7676 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/how-to/change-active-sheet.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/how-to/change-active-sheet.md @@ -1,21 +1,21 @@ --- layout: post -title: Changing the active sheet while importing a file in the Angular Spreadsheet component | Syncfusion +title: Change active sheet when importing Angular Spreadsheet | Syncfusion description: Learn here all about changing the active sheet index while importing a file in Syncfusion Angular Spreadsheet component of Syncfusion Essential JS 2 and more. platform: document-processing control: Spreadsheet documentation: ug --- -## Changing the active sheet while importing a file in Angular Spreadsheet component +# Change active sheet when importing Angular Spreadsheet -You can change the active sheet of imported file by updating [`activeSheetIndex`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#activesheetindex) property on the [`openComplete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#opencomplete) event. +You can change the active sheet of imported file by updating [`activeSheetIndex`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#activesheetindex) property on the [`openComplete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#opencomplete) event. The following code example shows how to set the active sheet when importing an Excel file. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/change-active-sheet-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/change-active-sheet-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/how-to/create-a-object-structure.md b/Document-Processing/Excel/Spreadsheet/Angular/how-to/create-a-object-structure.md index e16ca8919..dc7442bd8 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/how-to/create-a-object-structure.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/how-to/create-a-object-structure.md @@ -170,8 +170,8 @@ In the following demo, the JSON structure is passed to the [`openFromJson`](http {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/json-structure-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/json-structure-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="datasource.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/how-to/identify-the-context-menu-opened.md b/Document-Processing/Excel/Spreadsheet/Angular/how-to/identify-the-context-menu-opened.md index 5cdae0d47..0d79cca2f 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/how-to/identify-the-context-menu-opened.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/how-to/identify-the-context-menu-opened.md @@ -11,7 +11,7 @@ documentation: ug The Spreadsheet includes several context menus that will open and display depending on the action. When you right-click on a cell, for example, a context menu with options related to the cell element appears. -The class name returned by the [contextMenuBeforeOpen](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#contextmenubeforeopen) event can be used to identify the context menu that is opened. The context menus and their class names are tabulated below. +The class name returned by the [contextMenuBeforeOpen](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#contextmenubeforeopen) event can be used to identify the context menu that is opened. The context menus and their class names are tabulated below. | Class name | Context menu name | |-------|---------| @@ -23,8 +23,8 @@ The class name returned by the [contextMenuBeforeOpen](https://ej2.syncfusion.co The following code example shows how to identify the context menu opened. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/contextmenu-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/contextmenu-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/illustrations.md b/Document-Processing/Excel/Spreadsheet/Angular/illustrations.md index 53779e22b..6cb474dd6 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/illustrations.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/illustrations.md @@ -69,8 +69,8 @@ Image feature allows you to view and insert an image in a spreadsheet, and you c * Use the `top` and `left` property in the `insertImage()` method programmatically. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/image-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/image-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -89,9 +89,9 @@ The following features have some limitations in Image: ## Chart -A chart is a graphical representation of data, that organizes and represents a set of numerical or qualitative data. It mostly displays the selected range of data in terms of `x`-axis and `y`-axis. You can use the [`allowChart`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowchart) property to enable or disable the chart functionality. +A chart is a graphical representation of data, that organizes and represents a set of numerical or qualitative data. It mostly displays the selected range of data in terms of `x`-axis and `y`-axis. You can use the [`allowChart`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowchart) property to enable or disable the chart functionality. ->* The default value for the [`allowChart`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowchart) property is `true`. +>* The default value for the [`allowChart`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowchart) property is `true`. ### Types of chart @@ -109,9 +109,9 @@ The following types of charts are available in the Spreadsheet. You can insert the chart by using one of the following ways, * Select the chart icon in the Ribbon toolbar under the Insert Tab. -* Use the [`insertChart()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#insertchart) method programmatically. +* Use the [`insertChart()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#insertchart) method programmatically. -The available parameter in the [`insertChart()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#insertchart) method is, +The available parameter in the [`insertChart()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#insertchart) method is, | Parameter | Type | Description | |-----|------|----| @@ -127,8 +127,8 @@ The available arguments in the `ChartModel` are: * markerSettings: Specifies the marker settings. The marker is used to provide information about the data points in the series and is currently only applicable to the line chart. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/chart-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/chart-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -141,9 +141,9 @@ The available arguments in the `ChartModel` are: ### Delete Chart * If you want to delete the chart, just select the chart, and then press the Delete key. -* Use the [`deleteChart()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#deletechart) method programmatically. +* Use the [`deleteChart()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#deletechart) method programmatically. -The available parameter in the [`deleteChart()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#deletechart) method is, +The available parameter in the [`deleteChart()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#deletechart) method is, | Parameter | Type | Description | |-----|------|----| @@ -158,8 +158,8 @@ Chart feature allows you to view and insert a chart in a spreadsheet, and you ca * You can change the position of the chart by drag and drop. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/chart-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/chart-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -171,11 +171,11 @@ Chart feature allows you to view and insert a chart in a spreadsheet, and you ca #### Customization of line chart markers -Using the [`actionBegin`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#actionbegin) event, you can change the shape, size, fill color, and border of the line chart marker. In the following example, you can see the modified marker appearance, such as shape and size, while creating the line chart with UI interaction. +Using the [`actionBegin`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#actionbegin) event, you can change the shape, size, fill color, and border of the line chart marker. In the following example, you can see the modified marker appearance, such as shape and size, while creating the line chart with UI interaction. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/chart-cs3/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/chart-cs3/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/images/gettingstarted_AI.png b/Document-Processing/Excel/Spreadsheet/Angular/images/gettingstarted_AI.png new file mode 100644 index 000000000..c48a14989 Binary files /dev/null and b/Document-Processing/Excel/Spreadsheet/Angular/images/gettingstarted_AI.png differ diff --git a/Document-Processing/Excel/Spreadsheet/Angular/images/gettingstarted_SSR.png b/Document-Processing/Excel/Spreadsheet/Angular/images/gettingstarted_SSR.png new file mode 100644 index 000000000..ecd7db48f Binary files /dev/null and b/Document-Processing/Excel/Spreadsheet/Angular/images/gettingstarted_SSR.png differ diff --git a/Document-Processing/Excel/Spreadsheet/Angular/images/spreadsheet_add_edit_delete_note.gif b/Document-Processing/Excel/Spreadsheet/Angular/images/spreadsheet_add_edit_delete_note.gif new file mode 100644 index 000000000..c70474230 Binary files /dev/null and b/Document-Processing/Excel/Spreadsheet/Angular/images/spreadsheet_add_edit_delete_note.gif differ diff --git a/Document-Processing/Excel/Spreadsheet/Angular/images/spreadsheet_next_previous_note.gif b/Document-Processing/Excel/Spreadsheet/Angular/images/spreadsheet_next_previous_note.gif new file mode 100644 index 000000000..6655125ae Binary files /dev/null and b/Document-Processing/Excel/Spreadsheet/Angular/images/spreadsheet_next_previous_note.gif differ diff --git a/Document-Processing/Excel/Spreadsheet/Angular/images/spreadsheet_show_hide_note.gif b/Document-Processing/Excel/Spreadsheet/Angular/images/spreadsheet_show_hide_note.gif new file mode 100644 index 000000000..7eb3b1c8e Binary files /dev/null and b/Document-Processing/Excel/Spreadsheet/Angular/images/spreadsheet_show_hide_note.gif differ diff --git a/Document-Processing/Excel/Spreadsheet/Angular/link.md b/Document-Processing/Excel/Spreadsheet/Angular/link.md index bced2e410..416bd45fc 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/link.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/link.md @@ -9,7 +9,7 @@ documentation: ug # Link in Angular Spreadsheet component -Hyperlink is used to navigate to web links or cell reference within the sheet or to other sheets in Spreadsheet. You can use the [`allowHyperlink`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowhyperlink) property to enable or disable hyperlink functionality. +Hyperlink is used to navigate to web links or cell reference within the sheet or to other sheets in Spreadsheet. You can use the [`allowHyperlink`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowhyperlink) property to enable or disable hyperlink functionality. > * The default value for `allowHyperlink` property is `true`. @@ -22,7 +22,7 @@ You can insert a hyperlink in a worksheet cell for quick access to related infor In the active spreadsheet, click the cell where you want to create a hyperlink. Insert hyperlink can be done by any of the following ways: * Select the INSERT tab in the Ribbon toolbar and choose the `Link` item. * Right-click the cell and then click Hyperlink item in the context menu, or you can press Ctrl+K. -* Use the [`addHyperlink()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#addhyperlink) method programmatically. +* Use the [`addHyperlink()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#addhyperlink) method programmatically. ## Edit Hyperlink @@ -45,15 +45,15 @@ Performing this operation remove a single hyperlink without losing the display t In the active spreadsheet, click the cell where you want to remove a hyperlink. remove hyperlink can be done by any of the following ways: * Right-click the cell and then click Remove Hyperlink item in the context menu. -* Use the [`removeHyperlink()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#removehyperlink) method programmatically. +* Use the [`removeHyperlink()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#removehyperlink) method programmatically. ## How to change target attribute There is an event named `beforeHyperlinkClick` which triggers only on clicking hyperlink. You can customize where to open the hyperlink by using the `target` property in the arguments of that event. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/link-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/link-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/notes.md b/Document-Processing/Excel/Spreadsheet/Angular/notes.md index fd9b548cf..3c0780c4b 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/notes.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/notes.md @@ -13,13 +13,13 @@ The **Notes** feature is used to insert comments, provide feedback, suggest chan When opening the Excel document with notes in the Spreadsheet, they will be displayed in the control. The cells containing notes will be indicated with a red colored triangle at the top-right corner. Hovering the mouse over these cells will display the content of the notes. -![Spreadsheet showing a note](./images/spreadsheet_show_note.png) +![Adding, editing, and deleting a note in Spreadsheet](./images/spreadsheet_add_edit_delete_note.gif) In the below example, you can add, edit, save, and delete notes. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/note-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/note-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -42,8 +42,6 @@ In the active worksheet, you can add a note in the following ways: A dialog box will open where you can enter the note content. After entering the content, you can either click on other cells or press the Esc button to automatically save the note and close the dialog box. -![Adding a note in Spreadsheet](./images/spreadsheet_add_note.gif) - ## Editing a note In the active worksheet, you can modify the content of existing notes in the document: @@ -54,8 +52,6 @@ In the active worksheet, you can modify the content of existing notes in the doc The note editor dialog box will open with the existing content. After editing the content, you can either click on other cells or press the Esc button to automatically save the changes and close the dialog box. -![Editing a note in Spreadsheet](./images/spreadsheet_edit_note.gif) - ## Deleting a note You can remove notes from cells using the following ways: @@ -65,12 +61,12 @@ You can remove notes from cells using the following ways: The note will be removed from the cell, and the red triangle indicator will be removed. -![Deleting a note in Spreadsheet](./images/spreadsheet_delete_note.gif) - ## Navigating between notes The Syncfusion Spreadsheet provides intuitive navigation to quickly move between cells containing notes in your worksheet. These options are accessible through the **Notes** dropdown in the **Review** tab. +![Navigating between notes in Spreadsheet](./images/spreadsheet_next_previous_note.gif) + ### Previous Note To navigate to the previous note: @@ -121,6 +117,8 @@ All notes in the worksheet will appear as floating text boxes near their respect This functionality enhances workflow efficiency by providing flexible control over note visibility, whether for individual focus or comprehensive review. +![Show/Hide notes in Spreadsheet](./images/spreadsheet_show_hide_note.gif) + ## Saving the document with notes The Spreadsheet data, including notes, can be saved and exported as an Excel document by selecting **File > Save As** in the ribbon menu. Exporting worksheets with notes is supported in Excel file formats such as Microsoft Excel (.xlsx) and Microsoft Excel 97-2003 (.xls). @@ -136,8 +134,8 @@ To disable the note functionality, you need to set the [enableNotes](https://ej2 In the below example, the note functionality is disabled in the Spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/note-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/note-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -154,8 +152,8 @@ The notes can be added initially when the Spreadsheet loads using cell data bind In the below example, you can navigate between notes using **Previous Note** and **Next Note** options, toggle individual note visibility with **Show/Hide Note**, display all notes at once using **Show All Notes** and see how notes are added using the `updateCell` method in the `created` event. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/note-cs3/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/note-cs3/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/open-save.md b/Document-Processing/Excel/Spreadsheet/Angular/open-save.md index 82363caf3..4aa02a612 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/open-save.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/open-save.md @@ -13,17 +13,17 @@ In import an excel file, it needs to be read and converted to client side Spread ## Open -The Spreadsheet control opens an Excel document with its data, style, format, and more. To enable this feature, set [`allowOpen`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowopen) as `true` and assign service url to the [`openUrl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#openurl) property. +The Spreadsheet control opens an Excel document with its data, style, format, and more. To enable this feature, set [`allowOpen`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowopen) as `true` and assign service url to the [`openUrl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#openurl) property. **User Interface**: In user interface you can open an Excel document by clicking `File > Open` menu item in ribbon. -The following sample shows the `Open` option by using the [`openUrl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#openUrl) property in the Spreadsheet control. You can also use the [`beforeOpen`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforeopen) event to trigger before opening an Excel file. +The following sample shows the `Open` option by using the [`openUrl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#openurl) property in the Spreadsheet control. You can also use the [`beforeOpen`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforeopen) event to trigger before opening an Excel file. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -42,17 +42,17 @@ Please find the below table for the beforeOpen event arguments. | requestData | object | To provide the Form data. | > * Use `Ctrl + O` keyboard shortcut to open Excel documents. -> * The default value of the [allowOpen](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowopen) property is `true`. For demonstration purpose, we have showcased the [allowOpen](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowopen) property in previous code snippet. +> * The default value of the [allowOpen](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowopen) property is `true`. For demonstration purpose, we have showcased the [allowOpen](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowopen) property in previous code snippet. ### Open an excel file using a file uploader -If you explore your machine to select and upload an excel document using the file uploader, you will receive the uploaded document as a raw file in the [success](https://ej2.syncfusion.com/angular/documentation/api/uploader/#success) event of the file uploader. In this `success` event, you should pass the received raw file as an argument to the Spreadsheet's [open](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#open) method to see the appropriate output. +If you explore your machine to select and upload an excel document using the file uploader, you will receive the uploaded document as a raw file in the [success](https://ej2.syncfusion.com/angular/documentation/api/uploader/index-default#success) event of the file uploader. In this `success` event, you should pass the received raw file as an argument to the Spreadsheet's [open](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#open) method to see the appropriate output. The following code example shows how to import an excel document using file uploader in spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs7/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs7/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -64,11 +64,11 @@ The following code example shows how to import an excel document using file uplo ### Open an external URL excel file while initial load -You can achieve to access the remote excel file by using the [`created`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#created) event. In this event you can fetch the excel file and convert it to a blob. Convert this blob to a file and [`open`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#open) this file by using Spreadsheet component open method. +You can achieve to access the remote excel file by using the [`created`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#created) event. In this event you can fetch the excel file and convert it to a blob. Convert this blob to a file and [`open`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#open) this file by using Spreadsheet component open method. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -80,13 +80,13 @@ You can achieve to access the remote excel file by using the [`created`](https:/ ### Open an excel file from blob data -By default, the Spreadsheet component provides an option to browse files from the local file system and open them within the component. If you want to open an Excel file from blob data, you need to fetch the blob data from the server or another source and convert this blob data into a `File` object. Then, you can use the [open](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#open) method in the Spreadsheet component to load that `File` object. +By default, the Spreadsheet component provides an option to browse files from the local file system and open them within the component. If you want to open an Excel file from blob data, you need to fetch the blob data from the server or another source and convert this blob data into a `File` object. Then, you can use the [open](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#open) method in the Spreadsheet component to load that `File` object. Please find the code to fetch the blob data and load it into the Spreadsheet component below. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-from-blobdata-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-from-blobdata-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -98,7 +98,7 @@ Please find the code to fetch the blob data and load it into the Spreadsheet com ### Open an Excel file located on a server -By default, the Spreadsheet component provides an option to browse files from the local file system and open them within the component. If you want to load an Excel file located on a server, you need to configure the server endpoint to fetch the Excel file from the server location, process it using `Syncfusion.EJ2.Spreadsheet.AspNet.Core`, and send it back to the client side as `JSON data`. On the client side, you should use the [openFromJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#openfromjson) method to load that `JSON data` into the Spreadsheet component. +By default, the Spreadsheet component provides an option to browse files from the local file system and open them within the component. If you want to load an Excel file located on a server, you need to configure the server endpoint to fetch the Excel file from the server location, process it using `Syncfusion.EJ2.Spreadsheet.AspNet.Core`, and send it back to the client side as `JSON data`. On the client side, you should use the [openFromJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#openfromjson) method to load that `JSON data` into the Spreadsheet component. **Server Endpoint**: @@ -157,9 +157,9 @@ Before proceeding with the opening process, you should deploy the spreadsheet op [How to deploy a spreadsheet open and save web API service to AWS Lambda](https://support.syncfusion.com/kb/article/17184/how-to-deploy-a-spreadsheet-open-and-save-web-api-service-to-aws-lambda) -After deployment, you will get the AWS service URL for the open and save actions. Before opening the Excel file with this hosted open URL, you need to prevent the default file opening process to avoid getting a corrupted file on the open service end. The spreadsheet component appends the file to the `formData` and sends it to the open service, which causes the file to get corrupted. To prevent this, set the `args.cancel` value to `true` in the [`beforeOpen`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforeopen) event. After that, you will get the selected file in the `beforeOpen` event argument. Then, convert this file into a base64 string and send it to the open service URL using a fetch request. +After deployment, you will get the AWS service URL for the open and save actions. Before opening the Excel file with this hosted open URL, you need to prevent the default file opening process to avoid getting a corrupted file on the open service end. The spreadsheet component appends the file to the `formData` and sends it to the open service, which causes the file to get corrupted. To prevent this, set the `args.cancel` value to `true` in the [`beforeOpen`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforeopen) event. After that, you will get the selected file in the `beforeOpen` event argument. Then, convert this file into a base64 string and send it to the open service URL using a fetch request. -On the open service end, convert the base64 string back to a file and pass it as an argument to the workbook `Open` method. The open service will process the file and return the spreadsheet data in JSON format. You will then receive this JSON data in the fetch success callback. Finally, use the [openFromJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#openfromjson) method to load this JSON data into the spreadsheet component. +On the open service end, convert the base64 string back to a file and pass it as an argument to the workbook `Open` method. The open service will process the file and return the spreadsheet data in JSON format. You will then receive this JSON data in the fetch success callback. Finally, use the [openFromJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#openfromjson) method to load this JSON data into the spreadsheet component. The following code example shows how to open an Excel file using a hosted web service in AWS Lambda, as mentioned above. @@ -255,13 +255,13 @@ public class OpenOptions ### Open an excel file from Base64 string data -In the Syncfusion® Spreadsheet component, there is no direct option to open data as a `Base64` string. To achieve this, the `import()` function fetches the `Base64` string, converts it to a Blob, creates a File object from the Blob, and then opens it using the [open](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#open) method in the spreadsheet. +In the Syncfusion® Spreadsheet component, there is no direct option to open data as a `Base64` string. To achieve this, the `import()` function fetches the `Base64` string, converts it to a Blob, creates a File object from the Blob, and then opens it using the [open](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#open) method in the spreadsheet. The following code example shows how to open the spreadsheet data as base64 string. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/base-64-string/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/base-64-string/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -273,11 +273,11 @@ The following code example shows how to open the spreadsheet data as base64 stri ### Open excel file into a read-only mode -You can open excel file into a read-only mode by using the [`openComplete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#opencomplete) event. In this event, you must protect all the sheets and lock its used range cells by using [`protectSheet`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#protectsheet) and [`lockCells`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#lockcells) methods. +You can open excel file into a read-only mode by using the [`openComplete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#opencomplete) event. In this event, you must protect all the sheets and lock its used range cells by using [`protectSheet`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#protectsheet) and [`lockCells`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#lockcells) methods. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs12/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs12/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -292,7 +292,7 @@ You can open excel file into a read-only mode by using the [`openComplete`](http ### Configure JSON deserialization options -Previously, when opening a workbook JSON object into the Spreadsheet using the [openFromJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#openfromjson) method, the entire workbook, including all features specified in the JSON object, was processed and loaded into the Spreadsheet. +Previously, when opening a workbook JSON object into the Spreadsheet using the [openFromJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#openfromjson) method, the entire workbook, including all features specified in the JSON object, was processed and loaded into the Spreadsheet. Now, you have the option to selectively ignore some features during the opening of the JSON object by configuring deserialization options and passing them as arguments to the `openFromJson` method. This argument is optional, and if not configured, the entire workbook JSON object will be loaded without ignoring any features. @@ -317,8 +317,8 @@ spreadsheet.openFromJson({ file: file }, { ignoreStyle: true }); The following code snippet demonstrates how to configure the deserialization options and pass them as arguments to the openFromJson method: {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-from-json/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-from-json/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -364,7 +364,7 @@ public IActionResult Open(IFormCollection openRequest) When opening large Excel files with many features and data, the server response can become very large. This might cause memory issues or connection problems during data transmission. The `Chunk Response Processing` feature solves this by dividing the server response into smaller parts, called chunks, and sending them to the client in parallel. The client receives these chunks and combines them to load the Excel data smoothly into the spreadsheet. -You can enable this feature by setting the [`chunkSize`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/openSettings/#chunksize) property in the [`openSettings`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#opensettings) object. Set the [`chunkSize`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/openSettings/#chunksize) to a value greater than 0 (in bytes). The [`chunkSize`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/openSettings/#chunksize) defines how large each chunk will be. Make sure your server supports chunked responses to use this feature effectively. +You can enable this feature by setting the [chunkSize](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/opensettings#chunksize) property in the [openSettings](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#opensettings) object. Set the [chunkSize](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/opensettings#chunksize) to a value greater than 0 (in bytes). The [chunkSize](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/opensettings#chunksize) defines how large each chunk will be. Make sure your server supports chunked responses to use this feature effectively. > This feature reduces memory usage on both the server and client, ensuring that resources are managed efficiently during data transmission. By sending smaller parts of data, it prevents connection issues that could occur with large payloads, making the transmission process more reliable. Additionally, it allows large Excel files to be loaded smoothly into the spreadsheet, providing a seamless user experience even with extensive data. @@ -433,11 +433,11 @@ The [attachment](https://www.syncfusion.com/downloads/support/directtrac/general ### Add custom header during open -You can add your own custom header to the open action in the Spreadsheet. For processing the data, it has to be sent from server to client side and adding customer header can provide privacy to the data with the help of Authorization Token. Through the [`beforeOpen`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforeopen) event, the custom header can be added to the request during open action. +You can add your own custom header to the open action in the Spreadsheet. For processing the data, it has to be sent from server to client side and adding customer header can provide privacy to the data with the help of Authorization Token. Through the [`beforeOpen`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforeopen) event, the custom header can be added to the request during open action. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs8/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs8/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -467,17 +467,17 @@ public IActionResult Open(IFormCollection openRequest) ## Save -The Spreadsheet control saves its data, style, format, and more as Excel file document. To enable this feature, set [`allowSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowsave) as `true` and assign service url to the [`saveUrl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#saveurl) property. +The Spreadsheet control saves its data, style, format, and more as Excel file document. To enable this feature, set [`allowSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowsave) as `true` and assign service url to the [`saveUrl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#saveurl) property. **User Interface**: In user interface, you can save Spreadsheet data as Excel document by clicking `File > Save As` menu item in ribbon. -The following sample shows the `Save` option by using the [`saveUrl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#saveurl) property in the Spreadsheet control. You can also use the [`beforeSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforesave) event to trigger before saving the Spreadsheet as an Excel file. +The following sample shows the `Save` option by using the [`saveUrl`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#saveurl) property in the Spreadsheet control. You can also use the [`beforeSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforesave) event to trigger before saving the Spreadsheet as an Excel file. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs3/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs3/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -500,18 +500,18 @@ Please find the below table for the beforeSave event arguments. | cancel | boolean | To prevent the save operations. | > * Use `Ctrl + S` keyboard shortcut to save the Spreadsheet data as Excel file. -> * The default value of [allowSave](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowsave) property is `true`. For demonstration purpose, we have showcased the [allowSave](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowsave) property in previous code snippet. +> * The default value of [allowSave](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowsave) property is `true`. For demonstration purpose, we have showcased the [allowSave](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowsave) property in previous code snippet. > * Demo purpose only, we have used the online web service url link. ### Save an excel file as blob data -By default, the Spreadsheet component saves the Excel file and downloads it to the local file system. If you want to save an Excel file as blob data, you need to set `needBlobData` property to **true** and `isFullPost` property to **false** in the [beforeSave](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforesave) event of the spreadsheet. Subsequently, you will receive the spreadsheet data as a blob in the [saveComplete](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#savecomplete) event. You can then post the blob data to the server endpoint for saving. +By default, the Spreadsheet component saves the Excel file and downloads it to the local file system. If you want to save an Excel file as blob data, you need to set `needBlobData` property to **true** and `isFullPost` property to **false** in the [beforeSave](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforesave) event of the spreadsheet. Subsequently, you will receive the spreadsheet data as a blob in the [saveComplete](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#savecomplete) event. You can then post the blob data to the server endpoint for saving. Please find below the code to retrieve blob data from the Spreadsheet component below. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/save-as-blobdata-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/save-as-blobdata-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -523,7 +523,7 @@ Please find below the code to retrieve blob data from the Spreadsheet component ### Save an Excel file to a server -By default, the Spreadsheet component saves the Excel file and downloads it to the local file system. If you want to save an Excel file to a server location, you need to configure the server endpoint to convert the spreadsheet data into a file stream and save it to the server location. To do this, first, on the client side, you must convert the spreadsheet data into `JSON` format using the [saveAsJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#saveasjson) method and send it to the server endpoint. On the server endpoint, you should convert the received spreadsheet `JSON` data into a file stream using `Syncfusion.EJ2.Spreadsheet.AspNet.Core`, then convert the stream into an Excel file, and finally save it to the server location. +By default, the Spreadsheet component saves the Excel file and downloads it to the local file system. If you want to save an Excel file to a server location, you need to configure the server endpoint to convert the spreadsheet data into a file stream and save it to the server location. To do this, first, on the client side, you must convert the spreadsheet data into `JSON` format using the [saveAsJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#saveasjson) method and send it to the server endpoint. On the server endpoint, you should convert the received spreadsheet `JSON` data into a file stream using `Syncfusion.EJ2.Spreadsheet.AspNet.Core`, then convert the stream into an Excel file, and finally save it to the server location. **Client Side**: @@ -594,7 +594,7 @@ Before proceeding with the save process, you should deploy the spreadsheet open/ [How to deploy a spreadsheet open and save web API service to AWS Lambda](https://support.syncfusion.com/kb/article/17184/how-to-deploy-a-spreadsheet-open-and-save-web-api-service-to-aws-lambda) -After deployment, you will get the AWS service URL for the open and save actions. Before saving the Excel file with this hosted save URL, you need to prevent the default save action to avoid getting a corrupted excel file on the client end. The save service returns the file stream as a result to the client, which can cause the file to become corrupted. To prevent this, set the `args.cancel` value to `true` in the [`beforeSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforesave) event. After that, convert the spreadsheet data into JSON format using the [saveAsJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#saveasjson) method in the `beforeSave` event and send it to the save service endpoint URL using a fetch request. +After deployment, you will get the AWS service URL for the open and save actions. Before saving the Excel file with this hosted save URL, you need to prevent the default save action to avoid getting a corrupted excel file on the client end. The save service returns the file stream as a result to the client, which can cause the file to become corrupted. To prevent this, set the `args.cancel` value to `true` in the [`beforeSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforesave) event. After that, convert the spreadsheet data into JSON format using the [saveAsJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#saveasjson) method in the `beforeSave` event and send it to the save service endpoint URL using a fetch request. On the server side, the save service will take the received JSON data, pass it to the workbook `Save` method, and return the result as a base64 string. The fetch success callback will receive the Excel file in base64 string format on the client side. Finally, you can then convert the base64 string back to a file on the client end to obtain a non-corrupted Excel file. @@ -694,13 +694,13 @@ public string Save([FromForm]SaveSettings saveSettings) In the Spreadsheet component, there is currently no direct option to save data as a `Base64` string. You can achieve this by saving the Spreadsheet data as blob data and then converting that saved blob data to a `Base64` string using `FileReader`. -> You can get the Spreadsheet data as blob in the [saveComplete](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#savecomplete) event when you set the `needBlobData` as **true** and `isFullPost` as **false** in the [beforeSave](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforesave) event. +> You can get the Spreadsheet data as blob in the [saveComplete](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#savecomplete) event when you set the `needBlobData` as **true** and `isFullPost` as **false** in the [beforeSave](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforesave) event. The following code example shows how to save the spreadsheet data as base64 string. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/base-64-string/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/base-64-string/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -712,7 +712,7 @@ The following code example shows how to save the spreadsheet data as base64 stri ### Configure JSON serialization options -Previously, when saving the Spreadsheet as a workbook JSON object using the [saveAsJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#saveasjson) method, the entire workbook with all loaded features were processed and saved as a JSON object. +Previously, when saving the Spreadsheet as a workbook JSON object using the [saveAsJson](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#saveasjson) method, the entire workbook with all loaded features were processed and saved as a JSON object. Now, you have the option to selectively ignore some features while saving the Spreadsheet as a JSON object by configuring serialization options and passing them as arguments to the `saveAsJson` method. This argument is optional, and if not configured, the entire workbook JSON object will be saved without ignoring any features. @@ -737,8 +737,8 @@ spreadsheet.saveAsJson({ onlyValues: true }); The following code snippet demonstrates how to configure the serialization options and pass them as arguments to the saveAsJson method: {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/save-as-json/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/save-as-json/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -750,11 +750,11 @@ The following code snippet demonstrates how to configure the serialization optio ### Send and receive custom params from client to server -Passing the custom parameters from client to server by using [`beforeSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforesave) event. +Passing the custom parameters from client to server by using [`beforeSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforesave) event. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs4/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs4/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -777,11 +777,11 @@ Server side code snippets: ### Add custom header during save -You can add your own custom header to the save action in the Spreadsheet. For processing the data, it has to be sent from client to server side and adding customer header can provide privacy to the data with the help of Authorization Token. Through the [`fileMenuItemSelect`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#filemenuitemselect) event, the custom header can be added to the request during save action. +You can add your own custom header to the save action in the Spreadsheet. For processing the data, it has to be sent from client to server side and adding customer header can provide privacy to the data with the help of Authorization Token. Through the [`fileMenuItemSelect`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#filemenuitemselect) event, the custom header can be added to the request during save action. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs11/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs11/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -793,7 +793,7 @@ You can add your own custom header to the save action in the Spreadsheet. For pr ### Change the PDF orientation -By default, the PDF document is created in **Portrait** orientation. You can change the orientation of the PDF document by using the `args.pdfLayoutSettings.orientation` argument settings in the [`beforeSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforesave) event. +By default, the PDF document is created in **Portrait** orientation. You can change the orientation of the PDF document by using the `args.pdfLayoutSettings.orientation` argument settings in the [`beforeSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforesave) event. The possible values are: @@ -801,8 +801,8 @@ The possible values are: * **Landscape** - Used to display content in a horizontal layout. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs6/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs6/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -817,11 +817,11 @@ The possible values are: ### Methods -To save the Spreadsheet document as an `xlsx, xls, csv, or pdf` file, by using [save](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#save) method should be called with the `url`, `fileName` and `saveType` as parameters. The following code example shows to save the spreadsheet file as an `xlsx, xls, csv, or pdf` in the button click event. +To save the Spreadsheet document as an `xlsx, xls, csv, or pdf` file, by using [save](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#save) method should be called with the `url`, `fileName` and `saveType` as parameters. The following code example shows to save the spreadsheet file as an `xlsx, xls, csv, or pdf` in the button click event. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/open-save-cs5/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/open-save-cs5/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/performance-best-practices.md b/Document-Processing/Excel/Spreadsheet/Angular/performance-best-practices.md index 6683d5481..4eacf1cbf 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/performance-best-practices.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/performance-best-practices.md @@ -32,11 +32,11 @@ To enable the chunk response processing feature, you can refer to the following ### Configure JSON serialization options during open -Serialization options in the Angular Spreadsheet allow you to exclude specific features—such as styles, formats, charts, images, wrap, etc.—from the `Workbook JSON object` when opening it in the Spreadsheet using the [`openFromJson`](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/#openfromjson) method. By skipping unnecessary features, you can significantly improve performance, especially when working with large or complex workbooks. +Serialization options in the Angular Spreadsheet allow you to exclude specific features—such as styles, formats, charts, images, wrap, etc.—from the `Workbook JSON object` when opening it in the Spreadsheet using the [`openFromJson`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#openfromjson) method. By skipping unnecessary features, you can significantly improve performance, especially when working with large or complex workbooks. This is particularly useful when: * You need only the raw data without formatting. -* You're opening the `Workbook JSON object` in the Spreadsheet using the [`openFromJson`](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/#openfromjson) method. +* You're opening the `Workbook JSON object` in the Spreadsheet using the [`openFromJson`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#openfromjson) method. * You want to minimize the size of the JSON payload and optimize processing speed. Refer to the following UG section to learn how to configure these options: @@ -104,25 +104,25 @@ To learn more about Manual Calculation Mode and how to enable it, you can refer When saving large Excel files with extensive data and features using **File → Save As** or the **save** method, the Spreadsheet triggers a server API call through a form submit operation. This can lead to performance issues such as timeouts or delays, particularly due to the size and complexity of the workbook. -To mitigate these issues during the save operation, you can set the [`isFullPost`](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/beforeSaveEventArgs/#isfullpost) property to **false** in the [`beforeSave`](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforesave) event of the Spreadsheet. +To mitigate these issues during the save operation, you can set the [`isFullPost`](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/beforesaveeventargs#isfullpost) property to **false** in the [`beforeSave`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforesave) event of the Spreadsheet. The following code example shows how to set `isFullPost` to **false** in the Spreadsheet component: {% tabs %} -{% highlight ts tabtitle="app.component.html" %} +{% highlight ts tabtitle="app.html" %} {% endhighlight %} -{% highlight ts tabtitle="app.component.ts" %} +{% highlight ts tabtitle="app.ts" %} import { Component, ViewEncapsulation, Inject, ViewChild } from '@angular/core'; import { BeforeSaveEventArgs, SpreadsheetComponent, SpreadsheetModule } from '@syncfusion/ej2-angular-spreadsheet'; @Component({ selector: 'app-root', - templateUrl: 'app.component.html', - styleUrls: ['app.component.css'], + templateUrl: 'app.html', + styleUrls: ['app.css'], encapsulation: ViewEncapsulation.None, standalone: true, imports: [ SpreadsheetModule, ] @@ -146,11 +146,11 @@ export class AppComponent { ### Configure JSON serialization options during save -Serialization options in the Angular Spreadsheet allow you to exclude specific features such as styles, formats, charts, images, wrap, etc. from the `Workbook JSON object` when saving it using the [`saveAsJson`](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/#saveasjson) method in the Spreadsheet. By skipping unnecessary features, you can significantly improve performance, especially when working with large or complex workbooks. +Serialization options in the Angular Spreadsheet allow you to exclude specific features such as styles, formats, charts, images, wrap, etc. from the `Workbook JSON object` when saving it using the [`saveAsJson`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#saveasjson) method in the Spreadsheet. By skipping unnecessary features, you can significantly improve performance, especially when working with large or complex workbooks. This is particularly useful when: * You need only the raw data without formatting. -* You're saving the `Workbook JSON object` using the [`saveAsJson`](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/#saveasjson) method in the Spreadsheet. +* You're saving the `Workbook JSON object` using the [`saveAsJson`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#saveasjson) method in the Spreadsheet. * You want to minimize the size of the JSON payload and optimize processing speed. Proper use of serialization options during save improves performance and reduces the time taken during the save process. @@ -165,7 +165,7 @@ Refer to the following UG section to learn how to configure these options: When working with large datasets in the Angular Spreadsheet, user interactions such as selecting a large range of cells can experience delays. This occurs because, by default, the Spreadsheet performs aggregate calculations (e.g., SUM, AVERAGE, COUNT, MIN, and MAX) on the selected range and displays the results in the sheet tab panel at the bottom-right corner. -To enhance the responsiveness of cell selection, particularly in performance-critical scenarios, consider disabling unnecessary aggregate calculations using the [`showAggregate`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#showaggregate) property. +To enhance the responsiveness of cell selection, particularly in performance-critical scenarios, consider disabling unnecessary aggregate calculations using the [`showAggregate`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#showaggregate) property. Benefits: * Reduces selection lag when dealing with large data ranges. @@ -175,7 +175,7 @@ Benefits: You can disable aggregate calculation using the following code example: {% tabs %} -{% highlight ts tabtitle="app.component.html" %} +{% highlight ts tabtitle="app.html" %} {% endhighlight %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/print.md b/Document-Processing/Excel/Spreadsheet/Angular/print.md index 7968c9b06..24ec62509 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/print.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/print.md @@ -30,8 +30,8 @@ The `printOptions` contain three properties, as described below. > When the `print` method is called without any parameters, the default printing will be performed. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/print-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/print-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -43,13 +43,13 @@ The `printOptions` contain three properties, as described below. ## Disable printing -The printing functionality in the Spreadsheet can be disabled by setting the [`allowPrint`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowprint) property to **false**. After disabling, the **"Print"** option will not be available in the **"File"** menu of the ribbon and as a keyboard shortcut. +The printing functionality in the Spreadsheet can be disabled by setting the [`allowPrint`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowprint) property to **false**. After disabling, the **"Print"** option will not be available in the **"File"** menu of the ribbon and as a keyboard shortcut. ![Spreadsheet with print option disabled](./images/spreadsheet_print_disable.png) {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/print-cs3/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/print-cs3/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/protect-sheet.md b/Document-Processing/Excel/Spreadsheet/Angular/protect-sheet.md index 80d36a7e9..ee2eb3a1e 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/protect-sheet.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/protect-sheet.md @@ -14,7 +14,7 @@ Sheet protection helps you to prevent the users from modifying the data in the s ## Protect Sheet Protect sheet feature helps you to prevent the unknown users from accidentally changing, editing, moving, or deleting data in a spreadsheet. And you can also protect the sheet with password. -You can use the [`isProtected`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#isprotected) property to enable or disable the Protecting functionality. +You can use the [`isProtected`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#isprotected) property to enable or disable the Protecting functionality. > * The default value for `isProtected` property is `false`. @@ -40,13 +40,13 @@ In the active Spreadsheet, the sheet protection can be done by any of the follow * Select the Protect Sheet item in the Ribbon toolbar under the Data Tab, and then select your desired options. * Right-click the sheet tab, select the Protect Sheet item in the context menu, and then select your desired options. -* Use the [`protectSheet()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#protectsheet) method programmatically. +* Use the [`protectSheet()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#protectsheet) method programmatically. The following example shows `Protect Sheet` functionality with password in the Spreadsheet control. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/protect-sheet-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/protect-sheet-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -70,15 +70,15 @@ In the active Spreadsheet, the sheet Unprotection can be done by any of the foll * Select the `Unprotect Sheet` item in the Ribbon toolbar under the Data Tab. * Right-click the sheet tab, select the `Unprotect Sheet` item in the context menu. -* Use the [`unprotectSheet()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#unprotectsheet) method programmatically. +* Use the [`unprotectSheet()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#unprotectsheet) method programmatically. ## Unlock the particular cells in the protected sheet -In protected spreadsheet, to make some particular cell or range of cells are editable, you can use [`lockCells()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#lockcells) method, with the parameter `range` and `isLocked` property as false. +In protected spreadsheet, to make some particular cell or range of cells are editable, you can use [`lockCells()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#lockcells) method, with the parameter `range` and `isLocked` property as false. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/lock-cells-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/lock-cells-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -90,9 +90,9 @@ In protected spreadsheet, to make some particular cell or range of cells are edi ## Make cells read-only without protecting worksheet -Previously, you could make cells read-only by protecting the entire sheet using the [protectSheet](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#protectsheet) method or through the UI option. Meanwhile, to make a specific range of cells editable within a protected sheet, you needed to use the [lockCells](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#lockcells) method, passing the `range` parameter and setting the `isLocked` property to **false**. +Previously, you could make cells read-only by protecting the entire sheet using the [protectSheet](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#protectsheet) method or through the UI option. Meanwhile, to make a specific range of cells editable within a protected sheet, you needed to use the [lockCells](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#lockcells) method, passing the `range` parameter and setting the `isLocked` property to **false**. -Now, you can make an entire row, an entire column, or a specific range of cells read-only using the [setRangeReadOnly](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#setrangereadonly) method without protecting the entire sheet. This method accepts three parameters, as detailed in the following table: +Now, you can make an entire row, an entire column, or a specific range of cells read-only using the [setRangeReadOnly](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#setrangereadonly) method without protecting the entire sheet. This method accepts three parameters, as detailed in the following table: | Parameter | Description | |-----|------| @@ -141,8 +141,8 @@ You can make the cells read-only in the cell data binding by setting the `isRead The following example demonstrates how to make rows, columns, and cells read-only without protecting the sheet: {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/readonly-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/readonly-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -155,8 +155,8 @@ The following example demonstrates how to make rows, columns, and cells read-onl ## Protect Workbook Protect workbook feature helps you to protect the workbook so that users cannot insert, delete, rename, hide the sheets in the spreadsheet. -You can use the [`password`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#password) property to protect workbook with password. -You can use the [`isProtected`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#isprotected) property to protect or unprotect the workbook without the password. +You can use the [`password`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#password) property to protect workbook with password. +You can use the [`isProtected`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#isprotected) property to protect or unprotect the workbook without the password. > The default value for `isProtected` property is `false`. @@ -164,11 +164,11 @@ You can use the [`isProtected`](https://ej2.syncfusion.com/angular/documentation In the active Spreadsheet, you can protect the worksheet by selecting the Data tab in the Ribbon toolbar and choosing the `Protect Workbook` item. Then, enter the password and confirm it and click on OK. -The following example shows `Protect Workbook` by using the [`isProtected`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#isprotected) property in the Spreadsheet control. +The following example shows `Protect Workbook` by using the [`isProtected`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#isprotected) property in the Spreadsheet control. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/local-data-binding-cs4/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/local-data-binding-cs4/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -178,11 +178,11 @@ The following example shows `Protect Workbook` by using the [`isProtected`](http {% previewsample "/document-processing/samples/spreadsheet/angular/local-data-binding-cs4" %} -The following example shows `Protect Workbook` by using the [`password`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#password) property in the Spreadsheet control. To unprotect the workbook, click the unprotect workbook button in the data tab and provide the password as syncfusion® in the dialog box. +The following example shows `Protect Workbook` by using the [`password`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#password) property in the Spreadsheet control. To unprotect the workbook, click the unprotect workbook button in the data tab and provide the password as syncfusion® in the dialog box. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/local-data-binding-cs5/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/local-data-binding-cs5/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -198,7 +198,7 @@ Unprotect Workbook is used to enable the insert, delete, rename, move, copy, hid **User Interface**: -In the active Spreadsheet, the workbook Unprotection can be done in any of the following ways: +In the active Spreadsheet, the workbook Unprotect can be done in any of the following ways: * Select the `Unprotect Workbook` item in the Ribbon toolbar under the Data Tab and provide the valid password in the dialog box. diff --git a/Document-Processing/Excel/Spreadsheet/Angular/ribbon.md b/Document-Processing/Excel/Spreadsheet/Angular/ribbon.md index df34b825a..464e3a1a2 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/ribbon.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/ribbon.md @@ -17,21 +17,21 @@ You can customize the ribbon using the following methods, | Method | Action | |-------|---------| -| [`hideRibbonTabs`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#hideribbontabs) | Used to show or hide the existing ribbon tabs. | -| [`enableRibbonTabs`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#enableribbontabs) | Used to enable or disable the existing ribbon tabs. | -| [`addRibbonTabs`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#addribbontabs) | Used to add custom ribbon tabs. | -| [`hideToolbarItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#hidetoolbaritems) | Used to show or hide the existing ribbon toolbar items. | -| [`enableToolbarItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#enabletoolbaritems) | Used to enable or disable the specified toolbar items. | -| [`addToolbarItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#addtoolbaritems) | Used to add the custom items in ribbon toolbar. | -| [`hideFileMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#hidefilemenuitems) | Used to show or hide the ribbon file menu items. | -| [`enableFileMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#enablefilemenuitems) | Used to enable or disable file menu items. | -| [`addFileMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#addfilemenuitems) | Used to add custom file menu items. | +| [`hideRibbonTabs`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#hideribbontabs) | Used to show or hide the existing ribbon tabs. | +| [`enableRibbonTabs`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#enableribbontabs) | Used to enable or disable the existing ribbon tabs. | +| [`addRibbonTabs`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#addribbontabs) | Used to add custom ribbon tabs. | +| [`hideToolbarItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#hidetoolbaritems) | Used to show or hide the existing ribbon toolbar items. | +| [`enableToolbarItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#enabletoolbaritems) | Used to enable or disable the specified toolbar items. | +| [`addToolbarItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#addtoolbaritems) | Used to add the custom items in ribbon toolbar. | +| [`hideFileMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#hidefilemenuitems) | Used to show or hide the ribbon file menu items. | +| [`enableFileMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#enablefilemenuitems) | Used to enable or disable file menu items. | +| [`addFileMenuItems`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#addfilemenuitems) | Used to add custom file menu items. | The following code example shows the usage of ribbon customization. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/ribbon/cutomization-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/ribbon/cutomization-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -43,7 +43,7 @@ The following code example shows the usage of ribbon customization. ## Note -You can refer to our [Angular Spreadsheet](https://www.syncfusion.com/spreadsheet-editor-sdk/angular-spreadsheet-editor) feature tour page for its groundbreaking feature representations. You can also explore our [Angular Spreadsheet example](https://document.syncfusion.com/demos/spreadsheet-editor/angular/#/material3/spreadsheet/default) to knows how to present and manipulate data. +You can explore our [Angular Spreadsheet example](https://document.syncfusion.com/demos/spreadsheet-editor/angular/#/material3/spreadsheet/default) to knows how to present and manipulate data. ## See Also diff --git a/Document-Processing/Excel/Spreadsheet/Angular/rows-and-columns.md b/Document-Processing/Excel/Spreadsheet/Angular/rows-and-columns.md index d6972d6c6..1fba18ba1 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/rows-and-columns.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/rows-and-columns.md @@ -17,20 +17,20 @@ Spreadsheet is a tabular format consisting of rows and columns. The intersection ## Insert -You can insert rows or columns anywhere in a spreadsheet. Use the [`allowInsert`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowinsert) property to enable or disable the insert option in Spreadsheet. +You can insert rows or columns anywhere in a spreadsheet. Use the [`allowInsert`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowinsert) property to enable or disable the insert option in Spreadsheet. ### Row The rows can be inserted in the following ways, -* Using [`insertRow`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#insertrow) method, you can insert the rows once the component is loaded. +* Using [`insertRow`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#insertrow) method, you can insert the rows once the component is loaded. * Using context menu, insert the empty rows in the desired position. The following code example shows the options for inserting rows in the spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/insert/row-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/insert/row-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -44,14 +44,14 @@ The following code example shows the options for inserting rows in the spreadshe The columns can be inserted in the following ways, -* Using [`insertColumn`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#insertcolumn) method, you can insert the columns once the component is loaded. +* Using [`insertColumn`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#insertcolumn) method, you can insert the columns once the component is loaded. * Using context menu, insert the empty columns in the desired position. The following code example shows the options for inserting columns in the spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/insert/column-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/insert/column-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -63,18 +63,18 @@ The following code example shows the options for inserting columns in the spread ## Delete -Delete support provides an option for deleting the rows and columns in the spreadsheet. Use [`allowDelete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowdelete) property to enable or disable the delete option in Spreadsheet. +Delete support provides an option for deleting the rows and columns in the spreadsheet. Use [`allowDelete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowdelete) property to enable or disable the delete option in Spreadsheet. The rows and columns can be deleted dynamically in the following ways, -* Using [`delete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#delete) method, you can delete the loaded rows and columns. +* Using [`delete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#delete) method, you can delete the loaded rows and columns. * Using context menu, you can delete the selected rows and columns. The following code example shows the delete operation of rows and columns in the spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/delete/row-column-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/delete/row-column-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -116,8 +116,8 @@ The columns can be hidden or shown through following ways, The following code example shows the hide/show rows and columns operation in the spreadsheet. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/hide-show-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/hide-show-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -129,13 +129,13 @@ The following code example shows the hide/show rows and columns operation in the ## Changing text in column headers -Using the [`beforeCellRender`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforecellrender) event, you can change the text in the column headers. In that event, you can use the `e-header-cell` class to identify the header cell element and update its text value. +Using the [`beforeCellRender`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforecellrender) event, you can change the text in the column headers. In that event, you can use the `e-header-cell` class to identify the header cell element and update its text value. The following code example shows how to change the text in the column headers. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/column-header-change-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/column-header-change-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/scrolling.md b/Document-Processing/Excel/Spreadsheet/Angular/scrolling.md index 3f96267b8..a14d5bd4b 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/scrolling.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/scrolling.md @@ -9,7 +9,7 @@ documentation: ug # Scrolling in Angular Spreadsheet component -Scrolling helps you to move quickly to different areas of the worksheet. It moves faster if we use horizontal and vertical scroll bars. Scrolling can be enabled by setting the [`allowScrolling`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowscrolling) as true. +Scrolling helps you to move quickly to different areas of the worksheet. It moves faster if we use horizontal and vertical scroll bars. Scrolling can be enabled by setting the [`allowScrolling`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowscrolling) as true. > By default, the `allowScrolling` property is true. @@ -20,11 +20,11 @@ You have the following options in Scrolling by using [`scrollSettings`](https:// ## Finite Scrolling -Finite scrolling supports two type of modes in scrolling. You can use the [`isFinite`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/scrollSettings/#isfinite) property in [`scrollSettings`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/scrollsettings) to specify the mode of scrolling. +Finite scrolling supports two type of modes in scrolling. You can use the [`isFinite`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/scrollsettings#isfinite) property in [`scrollSettings`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/scrollsettings) to specify the mode of scrolling. -* Finite - This mode does not create a new row/column when the scrollbar reaches the end. This can be achieved by setting the [`isFinite`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/scrollSettings/#isfinite) property as `true`. +* Finite - This mode does not create a new row/column when the scrollbar reaches the end. This can be achieved by setting the [`isFinite`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/scrollsettings#isfinite) property as `true`. -* Infinite - This mode creates a new row/column when the scrollbar reaches the end. This can be achieved by setting the [`isFinite`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/scrollSettings/#isfinite) property as `false`. +* Infinite - This mode creates a new row/column when the scrollbar reaches the end. This can be achieved by setting the [`isFinite`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/scrollsettings#isfinite) property as `false`. > By Default, the `isFinite` property is `false`. @@ -46,13 +46,13 @@ You can scroll through the worksheet using one of the following ways, ## Finite scrolling with defined rows and columns -If you want to perform scrolling with defined rows and columns, you must define `rowCount` and `colCount` in the [`sheets`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#sheets) property and set `isFinite` as true and `enableVirtualization` as false in `scrollSettings`. +If you want to perform scrolling with defined rows and columns, you must define `rowCount` and `colCount` in the [`sheets`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#sheets) property and set `isFinite` as true and `enableVirtualization` as false in `scrollSettings`. The following code example shows the finite scrolling with defined rows and columns in the spreadsheet. Here, we used rowCount as 20 and colCount as 20, after reaching the 20th row or 20th column you can't able to scroll. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/scrolling-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/scrolling-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/searching.md b/Document-Processing/Excel/Spreadsheet/Angular/searching.md index 31387aa65..a2a0bc3ba 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/searching.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/searching.md @@ -9,7 +9,7 @@ documentation: ug # Searching in Angular Spreadsheet component -Find and Replace helps you to search for the target text and replace the found text with alternative text within the sheet or workbook. You can use the [`allowFindAndReplace`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowfindandreplace) property to enable or disable the Find and Replace functionality. +Find and Replace helps you to search for the target text and replace the found text with alternative text within the sheet or workbook. You can use the [`allowFindAndReplace`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowfindandreplace) property to enable or disable the Find and Replace functionality. > * The default value for `allowFindAndReplace` property is `true`. @@ -30,7 +30,7 @@ Find can be done by any of the following ways: > * `Match case`: To find the matched value with case sensitive. > * `Match exact cell contents`: To find the exact matched cell value with entire match cases. -* Using [`find()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#find) method to perform find operation. +* Using [`find()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#find) method to perform find operation. ## Replace @@ -43,8 +43,8 @@ Replace can be done by any of the following ways: * Use `Ctrl + H` key to open the Find and Replace dialog. * Use Replace button to change the found value in sheet or workbook. * Using Replace All button, all the matched criteria can be replaced with find value based on sheet or workbook. -* Using [`replace()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#replace) method to perform replace operation by passing the argument `args.replaceby` as `replace`. -* Using [`replace()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#replace) method to perform replace all operation by passing the argument `args.replaceby` as `replaceall`. +* Using [`replace()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#replace) method to perform replace operation by passing the argument `args.replaceby` as `replace`. +* Using [`replace()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#replace) method to perform replace all operation by passing the argument `args.replaceby` as `replaceall`. ## Go to @@ -53,7 +53,7 @@ Go to feature is used to navigate to a specific cell address in the sheet or wor **User Interface**: * Use `Ctrl + G` key to open the Go To dialog. -* Use [`goTo()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#goto) method to perform Go To operation. +* Use [`goTo()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#goto) method to perform Go To operation. In the following sample, searching can be done by following ways: @@ -63,8 +63,8 @@ In the following sample, searching can be done by following ways: * You can have more options to find values by selecting the more options in the search toolbar. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/searching-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/searching-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/selection.md b/Document-Processing/Excel/Spreadsheet/Angular/selection.md index 56d8e6039..a0d47c650 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/selection.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/selection.md @@ -9,7 +9,7 @@ documentation: ug # Selection in Angular Spreadsheet component -Selection provides interactive support to highlight the cell, row, or column that you select. Selection can be done through Mouse, Touch, or Keyboard interaction. To enable selection, set `mode` as `Single` | `Multiple` in [`selectionSettings`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#selectionsettings). If you set `mode` to `None`, it disables the UI selection. +Selection provides interactive support to highlight the cell, row, or column that you select. Selection can be done through Mouse, Touch, or Keyboard interaction. To enable selection, set `mode` as `Single` | `Multiple` in [`selectionSettings`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#selectionsettings). If you set `mode` to `None`, it disables the UI selection. > * The default value for `mode` in `selectionSettings` is `Multiple`. @@ -21,7 +21,7 @@ You have the following options in Selection, ## Cell selection -Cell selection is used to select a single or multiple cells. It can be performed using the [`selectRange`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#selectrange) method. +Cell selection is used to select a single or multiple cells. It can be performed using the [`selectRange`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#selectrange) method. **User Interface**: @@ -47,8 +47,8 @@ You can perform row selection in any of the following ways, The following sample shows the row selection in the spreadsheet, here selecting the 5th row using the `selectRange` method. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/selection-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/selection-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -74,8 +74,8 @@ You can perform column selection in any of the following ways, The following sample shows the column selection in the spreadsheet, here selecting the 3rd column using the `selectRange` method. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/selection-cs2/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/selection-cs2/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -87,11 +87,11 @@ The following sample shows the column selection in the spreadsheet, here selecti ## Get selected cell values -You can select single or multiple cells, rows, or columns using mouse and keyboard interactions. You can also programmatically perform selections using the [selectRange](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/#selectrange) method. This selection behavior is controlled by the [selectionSettings](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/#selectionsettings) property. Finally, you can retrieve the selected cell values as a collection using the [getData](https://helpej2.syncfusion.com/angular/documentation/api/spreadsheet/#getdata) method. +You can select single or multiple cells, rows, or columns using mouse and keyboard interactions. You can also programmatically perform selections using the [selectRange](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#selectrange) method. This selection behavior is controlled by the [selectionSettings](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#selectionsettings) property. Finally, you can retrieve the selected cell values as a collection using the [getData](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#getdata) method. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/selected-cell-values/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/selected-cell-values/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -103,11 +103,11 @@ You can select single or multiple cells, rows, or columns using mouse and keyboa ## Remove Selection -The following sample shows, how to remove the selection in the spreadsheet. Here changing the `mode` as `None` in [`selectionSettings`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#selectionsettings) to disable's the UI selection. +The following sample shows, how to remove the selection in the spreadsheet. Here changing the `mode` as `None` in [`selectionSettings`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#selectionsettings) to disable's the UI selection. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/selection-cs3/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/selection-cs3/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/sort.md b/Document-Processing/Excel/Spreadsheet/Angular/sort.md index 34fef93f8..be0aba932 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/sort.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/sort.md @@ -9,7 +9,7 @@ documentation: ug # Sort in Angular Spreadsheet component -Sorting helps arranging the data to a specific order in a selected range of cells. You can use the [`allowSorting`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#allowsorting) property to enable or disable sorting functionality. +Sorting helps arranging the data to a specific order in a selected range of cells. You can use the [`allowSorting`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#allowsorting) property to enable or disable sorting functionality. > * The default value for `allowSorting` property is `true`. @@ -20,7 +20,7 @@ By default, the `sort` module is injected internally into Spreadsheet to perform In the active Spreadsheet, select a range of cells to sort by cell value. The range sort can be done by any of the following ways: * Select the sort item in the Ribbon toolbar and choose the ascending or descending item. * Right-click the sheet, select the sort item in the context menu and choose the ascending/descending item. -* Use the [`sort()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#sort) method programmatically. +* Use the [`sort()`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#sort) method programmatically. The cell values can be sorted in the following orders: * Ascending @@ -30,14 +30,14 @@ The cell values can be sorted in the following orders: The `sort()` method with empty arguments will sort the selected range by active cell’s column as sort column in ascending order. -> * The [`beforeSort`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#beforesort) event will be triggered before sorting the specified range. -> * The [`sortComplete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#sortcomplete) event will be triggered after the sort action is completed successfully. +> * The [`beforeSort`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#beforesort) event will be triggered before sorting the specified range. +> * The [`sortComplete`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#sortcomplete) event will be triggered after the sort action is completed successfully. The following code example shows `sort` functionality in the Spreadsheet control. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/sort-by-cell-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/sort-by-cell-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -49,7 +49,7 @@ The following code example shows `sort` functionality in the Spreadsheet control ## Data contains header -You can specify whether the selected range of cells contains header. To specify, you need to set the [`containsHeader`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#containsheader) property to `true` and pass it as `sortOption` arguments of the sort() method. +You can specify whether the selected range of cells contains header. To specify, you need to set the [`containsHeader`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#containsheader) property to `true` and pass it as `sortOption` arguments of the sort() method. > * If the `containsHeader` property is not set and active cell column’s first cell value type is differed from the second cell value type, the first row data in the range are marked as column headers. @@ -67,7 +67,7 @@ In the custom sort dialog, the `Data contains header` checkbox is checked on loa ## Case sensitive sort -The default sort functionality of Spreadsheet is a case insensitive sorting. When you want to perform sorting with case sensitive, you need to set the [`caseSensitive`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#casesensitive) property to `true` and pass it as `sortOption` arguments of the sort() method. +The default sort functionality of Spreadsheet is a case insensitive sorting. When you want to perform sorting with case sensitive, you need to set the [`caseSensitive`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#casesensitive) property to `true` and pass it as `sortOption` arguments of the sort() method. Case sensitive sorting is applicable only for cells with alphabets. In ascending order sorting with case sensitive enabled, the cells with lower case text will be placed above the cells with upper case text. @@ -104,7 +104,7 @@ You can refer to the [`Data contains header`](./sort#data-contains-header) topic ### Passing sort criteria manually The multi-column sorting can also be performed manually by passing sort options to the `sort()` method programmatically. The `sortOption` have the following arguments: -* [`sortDescriptors`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#sortdescriptors) – Sort criteria collection that holds the collection of field name, sort order, and [`sortComparer`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#sortcomparer). +* [`sortDescriptors`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#sortdescriptors) – Sort criteria collection that holds the collection of field name, sort order, and [`sortComparer`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#sortcomparer). * `containsHeader` – Boolean argument that specifies whether the range has headers in it. * `caseSensitive` – Boolean argument that specifies whether the range needs to consider case. @@ -112,8 +112,8 @@ The multi-column sorting can also be performed manually by passing sort options > * When a `sortDescriptor` is specified without field, the field of the first `sortDescriptor` from the collection will be assigned from active cell’s column name and others will be ignored. Hence, it will act as single column sorting. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/passing-sort-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/passing-sort-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} @@ -125,7 +125,7 @@ The multi-column sorting can also be performed manually by passing sort options ## Custom sort comparer -The [`sortDescriptor`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#sortdescriptor) holds the [`sortComparer`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/#sortcomparer) property, which is a function and it is used to customize the sort comparer for specific sort criteria. Each `sortDescriptor` can be customized using the custom sort comparer function. +The [`sortDescriptor`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#sortdescriptor) holds the [`sortComparer`](https://ej2.syncfusion.com/angular/documentation/api/spreadsheet/index-default#sortcomparer) property, which is a function and it is used to customize the sort comparer for specific sort criteria. Each `sortDescriptor` can be customized using the custom sort comparer function. By customizing sort comparer, you can define the sort action as desired. @@ -140,8 +140,8 @@ You can also define the sorting of cell values based on your own customized pers In the following demo, the `Trustworthiness` column is sorted based on the custom lists `Perfect`, `Sufficient`, and `Insufficient`. {% tabs %} -{% highlight ts tabtitle="app.component.ts" %} -{% include code-snippet/spreadsheet/angular/custom-sort-cs1/src/app.component.ts %} +{% highlight ts tabtitle="app.ts" %} +{% include code-snippet/spreadsheet/angular/custom-sort-cs1/src/app.ts %} {% endhighlight %} {% highlight ts tabtitle="main.ts" %} diff --git a/Document-Processing/Excel/Spreadsheet/Angular/template.md b/Document-Processing/Excel/Spreadsheet/Angular/template.md index 5bb435bb5..a7c9d873b 100644 --- a/Document-Processing/Excel/Spreadsheet/Angular/template.md +++ b/Document-Processing/Excel/Spreadsheet/Angular/template.md @@ -16,8 +16,8 @@ The following sample describes the above behavior. Sample link: [`Cell template`](https://document.syncfusion.com/demos/spreadsheet-editor/angular/#/material3/spreadsheet/cell-template)