Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Document-Processing-toc.html
Original file line number Diff line number Diff line change
Expand Up @@ -5653,6 +5653,13 @@
<li><a href="/document-processing/excel/spreadsheet/react/how-to/paste-only-values-without-formatting">Paste only values without formatting and styles</a></li>
</ul>
</li>
<li>FAQ
<ul>
<li><a href="/document-processing/excel/spreadsheet/react/faq/custom-translations-for-non-localized-strings">Custom translations for non localized text</a></li>
<li><a href="/document-processing/excel/spreadsheet/react/faq/trigger-formula-calculation-in-manual-mode">Triggers formula calculations in manual mode</a></li>
<li><a href="/document-processing/excel/spreadsheet/react/faq/restrict-features-during-excel-import.md">Restrict-Features-during Excel Import</a></li>
</ul>
</li>
<li><a href="/document-processing/excel/spreadsheet/react/mobile-responsiveness">Mobile Responsiveness</a></li>
<li><a href="/document-processing/excel/spreadsheet/react/feature-list">Features Availability</a>
</li>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
---
layout: post
title: How to Add Custom Translations for Missing Strings in Syncfusion Spreadsheet | Syncfusion
description: Learn how to add or override custom translations for missing strings in your current locale in the Syncfusion Spreadsheet React component. Improve localization easily.
control: Spreadsheet
platform: document-processing
documentation: ug
---

# Adding Custom Translations for Any Spreadsheet Text in Your Current Locale

You can add or override custom translations for any built-in or default text displayed by the Syncfusion Spreadsheet React component, regardless of whether it is already localized. This means you can customize the UI text for your current locale—even for strings that already appear in English or another language by default—by providing your own translations for the relevant keys in the locale object.

## Steps to Add Custom Translations

1. Review the Spreadsheet UI and identify any built-in or default text you want to customize for your selected locale.
2. Create a JavaScript object with key-value pairs, where each key is the string identifier (for any built-in text) and the value is your custom translation.

```js
const customLocale = {
'Cut': 'Cortar',
'Copy': 'Copiar',
'Paste': 'Pegar',
// You can override any built-in text, even if it already appears in English by default
// Add more translations as needed
};
```

3. Use the `L10n.load` method to merge your custom translations with the existing locale. This updates only the specified strings, while the rest remain unchanged. You can use this approach for any locale, including the default English locale ('en').

```js
import { L10n } from '@syncfusion/ej2-base';

L10n.load({
'es': {
"spreadsheet": customLocale
}
// For English (default), use 'en-US' as the key
// 'en-US': { 'spreadsheet': customLocale }
});
```

4. When initializing the Spreadsheet, set the [`locale`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#locale) property to your desired locale.

```js
<SpreadsheetComponent locale='es' />
```

For more information, refer to the [localization](../global-local#localization) section of the documentation.
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
layout: post
title: How to Restrict Features During Server-Side Excel Import in Syncfusion Spreadsheet | Syncfusion
description: Learn how to restrict certain features from being processed on the server when importing large Excel files into the Syncfusion Spreadsheet React component.
control: Spreadsheet
platform: document-processing
documentation: ug
---

# Restricting Features During Server-Side Excel Import

You can control which features are processed on the server when importing large Excel files into the Syncfusion Spreadsheet React component. By configuring import options, you can optimize both performance and resource usage during the import process.


## Steps to Restrict Features During Server-Side Excel Import

1. Use the server-side API or import options provided by Syncfusion to specify which features should be included or excluded during Excel file import.
2. Configure the import settings to skip processing of features such as formulas, formatting, images, charts, validations, merged cells, and other elements based on your requirements.

```csharp
public IActionResult Open(IFormCollection openRequest)
{
OpenRequest open = new OpenRequest();
...
open.ParseOptions = new WorkbookParseOptions() {
IgnoreStyle = true, // Ignore cell styles (fonts, colors, borders, etc.)
IgnoreFormat = true, // Ignore number and date/time formats
IgnoreChart = true, // Ignore charts
IgnoreImage = true, // Ignore images
IgnoreMergedCell = true, // Ignore merged cells
IgnoreFormula = true, // Ignore formulas
IgnoreValidation = true, // Ignore data validations
IgnoreConditionalFormat = true // Ignore conditional formatting
};
...
return Content(Workbook.Open(open));
}
```

- Adjust these options according to your requirements and the available API in your Syncfusion Spreadsheet version.
- Excluding unnecessary features can significantly improve import speed and reduce server load when working with large files.

For more information, refer to the [parse options](../open-excel-files#optimize-open-performance-with-parsing-options) section of the documentation.
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
layout: post
title: How to Trigger Formula Calculations in Manual Mode in Spreadsheet | Syncfusion
description: Learn how to trigger formula calculations when the Syncfusion Spreadsheet React component is rendered in manual calculation mode.
control: Spreadsheet
platform: document-processing
documentation: ug
---

# Triggering Formula Calculations in Manual Calculation Mode

Manually trigger formula calculations in the Syncfusion Spreadsheet React component when it is set to manual calculation mode. This approach ensures formulas are recalculated as needed for accurate results, and you have full control over when calculations occur.

## Steps to Trigger Formula Calculations in Manual Mode

1. Configure the Spreadsheet component to use manual calculation mode by setting the [`calculationMode`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#calculationmode) property to `'Manual'`.

2. Trigger formula calculations as needed using either of the following approaches:
- **Via the UI:** Use the **Calculate Sheet** and **Calculate Workbook** options under the **Formulas** tab in the Ribbon to manually recalculate formulas for the active sheet or the entire workbook.
- **Programmatically:** Call the [`calculateNow()`](https://ej2.syncfusion.com/react/documentation/api/spreadsheet/index-default#calculatenow) method on the Spreadsheet instance. This method allows you to:
- Recalculate all formulas in the spreadsheet.
- Trigger calculations for a specific sheet by passing `'Sheet'` as the scope and the sheet name or index.
- Trigger calculations across the entire workbook by passing `'Workbook'` as the scope.

```js
// Set calculation mode to manual
<SpreadsheetComponent calculationMode='Manual' ref={spreadsheetRef} />

// Trigger formula calculation for a specific sheet by name
spreadsheetRef.current?.calculateNow('Sheet', 'Sheet1');

// Trigger formula calculation for a specific sheet by index
spreadsheetRef.current?.calculateNow('Sheet', 0); // 0-based index

// Trigger formula calculation for the entire workbook
spreadsheetRef.current?.calculateNow('Workbook');
```

Call the `calculateNow()` method after making changes to cell values or formulas to ensure results are up to date. Specify the appropriate scope and sheet name or index as needed. This gives you flexibility to trigger calculations whenever required, not just when using manual mode.

For more information, refer to the [formula calculation](../formulas#calculation-mode) section of the documentation.