You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Document-Processing/Excel/Spreadsheet/Javascript-ES5/performance-best-practices.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,13 @@
1
1
---
2
2
layout: post
3
-
title: Performance best practices in EJ2 Javascript Spreadsheet | Syncfusion
4
-
description: Learn here all about how to optimize the performance EJ2 Javascript Spreadsheet control, its elements and more.
3
+
title: Performance best practices in EJ2 JavaScript Spreadsheet | Syncfusion
4
+
description: Learn here all about how to optimize the performance EJ2 JavaScript Spreadsheet control, its elements and more.
5
5
platform: document-processing
6
6
control: Performance
7
7
documentation: ug
8
8
---
9
9
10
-
# Performance Best Practices in EJ2 Javascript Spreadsheet Control
10
+
# Performance Best Practices in EJ2 JavaScript Spreadsheet Control
11
11
12
12
Performance optimization is crucial when working with large datasets in the [Syncfusion® JavaScript Spreadsheet](https://www.syncfusion.com/spreadsheet-editor-sdk/javascript-spreadsheet-editor). This documentation outlines best practices to enhance data handling efficiency and ensure a smooth, responsive user experience during various spreadsheet operations.
13
13
@@ -32,11 +32,11 @@ To enable the chunk response processing feature, you can refer to the following
32
32
33
33
### Configure JSON serialization options during open
34
34
35
-
Serialization options in the EJ2 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/javascript/documentation/api/spreadsheet/#openfromjson) method. By skipping unnecessary features, you can significantly improve performance, especially when working with large or complex workbooks.
35
+
Serialization options in the EJ2 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/javascript/documentation/api/spreadsheet#openfromjson) method. By skipping unnecessary features, you can significantly improve performance, especially when working with large or complex workbooks.
36
36
37
37
This is particularly useful when:
38
38
* You need only the raw data without formatting.
39
-
* You're opening the `Workbook JSON object` in the Spreadsheet using the [`openFromJson`](https://helpej2.syncfusion.com/javascript/documentation/api/spreadsheet/#openfromjson) method.
39
+
* You're opening the `Workbook JSON object` in the Spreadsheet using the [`openFromJson`](https://helpej2.syncfusion.com/javascript/documentation/api/spreadsheet#openfromjson) method.
40
40
* You want to minimize the size of the JSON payload and optimize processing speed.
41
41
42
42
Refer to the following UG section to learn how to configure these options:
@@ -103,7 +103,7 @@ To learn more about Manual Calculation Mode and how to enable it, you can refer
103
103
104
104
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.
105
105
106
-
To mitigate these issues during the save operation, you can set the [`isFullPost`](https://helpej2.syncfusion.com/javascript/documentation/api/spreadsheet/beforeSaveEventArgs/#isfullpost) property to **false** in the [`beforeSave`](https://helpej2.syncfusion.com/javascript/documentation/api/spreadsheet/#beforesave) event of the Spreadsheet.
106
+
To mitigate these issues during the save operation, you can set the [`isFullPost`](https://helpej2.syncfusion.com/javascript/documentation/api/spreadsheet/beforeSaveEventArgs#isfullpost) property to **false** in the [`beforeSave`](https://helpej2.syncfusion.com/javascript/documentation/api/spreadsheet#beforesave) event of the Spreadsheet.
107
107
108
108
The following code example shows how to set `isFullPost` to **false** in the Spreadsheet component:
109
109
@@ -117,11 +117,11 @@ var spreadsheet = new ej.spreadsheet.Spreadsheet({
117
117
118
118
### Configure JSON serialization options during save
119
119
120
-
Serialization options in the EJ2 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/javascript/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.
120
+
Serialization options in the EJ2 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/javascript/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.
121
121
122
122
This is particularly useful when:
123
123
* You need only the raw data without formatting.
124
-
* You're saving the `Workbook JSON object` using the [`saveAsJson`](https://helpej2.syncfusion.com/javascript/documentation/api/spreadsheet/#saveasjson) method in the Spreadsheet.
124
+
* You're saving the `Workbook JSON object` using the [`saveAsJson`](https://helpej2.syncfusion.com/javascript/documentation/api/spreadsheet#saveasjson) method in the Spreadsheet.
125
125
* You want to minimize the size of the JSON payload and optimize processing speed.
126
126
127
127
Proper use of serialization options during save improves performance and reduces the time taken during the save process.
@@ -136,7 +136,7 @@ Refer to the following UG section to learn how to configure these options:
136
136
137
137
When working with large datasets in the EJ2 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.
138
138
139
-
To enhance the responsiveness of cell selection, particularly in performance-critical scenarios, consider disabling unnecessary aggregate calculations using the [`showAggregate`](https://ej2.syncfusion.com/javascript/documentation/api/spreadsheet/#showaggregate) property.
139
+
To enhance the responsiveness of cell selection, particularly in performance-critical scenarios, consider disabling unnecessary aggregate calculations using the [`showAggregate`](https://ej2.syncfusion.com/javascript/documentation/api/spreadsheet#showaggregate) property.
140
140
141
141
Benefits:
142
142
* Reduces selection lag when dealing with large data ranges.
0 commit comments