You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/spreadsheet/keyboard-shortcuts.md
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@ The keyboard shortcuts supported in the spreadsheet are,
17
17
|-------|---------|
18
18
| Ctrl + O | Displays dialog to open a file. |
19
19
| Ctrl + S / Alt + F2 | Saves the workbook. |
20
+
| Ctrl + P | Print the active worksheet when the spreadsheet is in focus. |
20
21
| F2 | Enables edit mode. |
21
22
| ESC | Cancel edit mode and discard the changes. |
22
23
| Backspace and SPACE | Clears content of the active cell and enables edit mode. |
@@ -108,6 +109,7 @@ The keyboard shortcuts supported in the spreadsheet are,
108
109
| Shift + Enter | Complete the cell editing and select the cell above in the same column. |
109
110
| Tab | Complete the cell editing and select the next cell in the same row. |
110
111
| Shift + Tab | Complete the cell editing and select the previous cell in the same row. |
112
+
| Shift + F2 | Open the dialog box to add or edit notes for the desired cells. Meanwhile, upon pressing the `Esc` key, the dialog box for notes, when in focus, will save and close. |
111
113
| Alt | Focus on the active ribbon tab. |
112
114
| Left | Move the focus to the previous items in the ribbon content. |
113
115
| Right | Move the focus to the next items in the ribbon content. |
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/spreadsheet/open-save.md
+49-1Lines changed: 49 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,30 @@ You can open excel file into a read-only mode by using the [`openComplete`](http
140
140
{% endtabs %}
141
141
{% endif %}
142
142
143
+
### Configure JSON deserialization options
144
+
145
+
Previously, when opening a workbook JSON object into the Spreadsheet using the `openFromJson` method, the entire workbook, including all features specified in the JSON object, was processed and loaded into the Spreadsheet.
146
+
147
+
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.
| onlyValues | If **true**, only the cell values will be loaded. |
156
+
| ignoreStyle | If **true**, styles will be excluded when loading the JSON data. |
157
+
| ignoreFormula | If **true**, formulas will be excluded when loading the JSON data. |
158
+
| ignoreFormat | If **true**, number formats will be excluded when loading the JSON data. |
159
+
| ignoreConditionalFormat | If **true**, conditional formatting will be excluded when loading the JSON data. |
160
+
| ignoreValidation | If **true**, data validation rules will be excluded when loading the JSON data. |
161
+
| ignoreFreezePane | If **true**, freeze panes will be excluded when loading the JSON data. |
162
+
| ignoreWrap | If **true**, text wrapping settings will be excluded when loading the JSON data. |
163
+
| ignoreChart | If **true**, charts will be excluded when loading the JSON data. |
164
+
| ignoreImage | If **true**, images will be excluded when loading the JSON data. |
165
+
| ignoreNote | If **true**, notes will be excluded when loading the JSON data. |
166
+
143
167
### External workbook confirmation dialog
144
168
145
169
When you open an excel file that contains external workbook references, you will see a confirmation dialog. This dialog allows you to either continue with the file opening or cancel the operation. This confirmation dialog will appear only if you set the `AllowExternalWorkbook` property value to **false** during the open request, as shown below. This prevents the spreadsheet from displaying inconsistent data.
@@ -156,7 +180,7 @@ public IActionResult Open(IFormCollection openRequest)
156
180
157
181
> This feature is only applicable when importing an Excel file and not when loading JSON data or binding cell data.
Previously, when saving the Spreadsheet as a workbook JSON object using the `saveAsJson` method, the entire workbook with all loaded features were processed and saved as a JSON object.
335
+
336
+
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.
337
+
338
+
```ts
339
+
spreadsheet.saveAsJson({ onlyValues: true });
340
+
```
341
+
342
+
| Options | Description |
343
+
| ----- | ----- |
344
+
| onlyValues | If **true**, includes only the cell values in the JSON output. |
345
+
| ignoreStyle | If **true**, excludes styles from the JSON output. |
346
+
| ignoreFormula | If **true**, excludes formulas from the JSON output. |
347
+
| ignoreFormat | If **true**, excludes number formats from the JSON output. |
348
+
| ignoreConditionalFormat | If **true**, excludes conditional formatting from the JSON output. |
349
+
| ignoreValidation | If **true**, excludes data validation rules from the JSON output. |
350
+
| ignoreFreezePane | If **true**, excludes freeze panes from the JSON output. |
351
+
| ignoreWrap | If **true**, excludes text wrapping settings from the JSON output. |
352
+
| ignoreChart | If **true**, excludes charts from the JSON output. |
353
+
| ignoreImage | If **true**, excludes images from the JSON output. |
354
+
| ignoreNote | If **true**, excludes notes from the JSON output. |
355
+
308
356
### Supported file formats
309
357
310
358
The following list of Excel file formats are supported in Spreadsheet:
You can make the cells read-only in the cell data binding by setting the `isReadOnly` property to **true** for the respective rows, columns, and cells.
142
142
143
+
The following example demonstrates how to make rows, columns, and cells read-only without protecting the sheet:
144
+
145
+
{% if page.publishingplatform == "aspnet-core" %}
146
+
147
+
{% tabs %}
148
+
{% highlight cshtml tabtitle="CSHTML" %}
149
+
{% include code-snippet/spreadsheet/read-only/tagHelper %}
0 commit comments