Skip to content

Commit 207e858

Browse files
committed
1012637: updated How to session for react spreadsheet in ug documentation
1 parent 9e9bcf8 commit 207e858

5 files changed

Lines changed: 44 additions & 4 deletions

File tree

Document-Processing-toc.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5316,6 +5316,7 @@
53165316
<li><a href="/document-processing/excel/spreadsheet/react/how-to/find-replace-in-range">Find and replace the text within the selected range of cells</a></li>
53175317
<li><a href="/document-processing/excel/spreadsheet/react/how-to/dynamic-cell-dropdown">Add dynamic cell templates in the spreadsheet</a></li>
53185318
<li><a href="/document-processing/excel/spreadsheet/react/how-to/dynamic-cell-icon">Add an icon to the cell in the spreadsheet</a></li>
5319+
<li><a href="/document-processing/excel/spreadsheet/react/how-to/filter-row">Get the filtered row data in a spreadsheet</a></li>
53195320
</ul>
53205321
</li>
53215322
<li><a href="/document-processing/excel/spreadsheet/react/mobile-responsiveness">Mobile Responsiveness</a></li>

Document-Processing/Excel/Spreadsheet/React/how-to/dynamic-cell-dropdown.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: Dynamic cell template with dropdowns — React Spreadsheet | Syncfusion
4-
description: Rendering a dropdown inside a Spreadsheet cell using a dynamic cell template.
4+
description: Rendering a dropdown inside a cell using a dynamic cell template in Syncfusion React Spreadsheet component of Syncfusion Essential JS 2 and more.
55
control: Spreadsheet
66
platform: document-processing
77
documentation: ug

Document-Processing/Excel/Spreadsheet/React/how-to/dynamic-cell-icon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
33
title: Add icons to cells — React Spreadsheet | Syncfusion
4-
description: Short guide to add plus-icons inside Spreadsheet cells using a custom template or a template button.
4+
description: Add plus-icons inside Spreadsheet cells using a custom template in Syncfusion React Spreadsheet component of Syncfusion Essential JS 2 and more.
55
control: Spreadsheet
66
platform: document-processing
77
documentation: ug
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
---
2+
layout: post
3+
title: Get filtered row data — React Spreadsheet | Syncfusion
4+
description: Learn how to get filtered row data in the Syncfusion React Spreadsheet component of Syncfusion Essential JS 2.
5+
control: Spreadsheet
6+
platform: document-processing
7+
documentation: ug
8+
---
9+
10+
## Get filtered row data in React Spreadsheet
11+
12+
This guide explains how to get the filtered row data in the Syncfusion React Spreadsheet component.
13+
14+
When filtering is used, some rows stay visible and the others are hidden. To get only the filtered rows, you can loop through the row collection in the active sheet. Each row has an `isFiltered` property that tells whether the row is hidden by the filter. Rows that are not filtered can then be processed or used for your own logic.
15+
16+
You can apply filters through the UI or use the `applyFilter` method in code. After filtering, you can get the filtered results in a simple way by checking each row and picking the ones that are currently shown to the user.
17+
18+
### Filtered row extraction logic:
19+
20+
Filtering can be enabled with the `allowFiltering` property. After a filter is applied, the row objects in the active sheet include an `isFiltered` flag. By checking this flag, you can identify which rows are included in the filter results. This helps when you need to work only with the visible rows, such as exporting, validating, or processing filtered data.
21+
22+
The following example shows how to get the filtered rows from the Spreadsheet:
23+
24+
{% tabs %}
25+
{% highlight js tabtitle="app.jsx" %}
26+
{% include code-snippet/spreadsheet/react/filter-cs2/app/app.jsx %}
27+
{% endhighlight %}
28+
{% highlight ts tabtitle="app.tsx" %}
29+
{% include code-snippet/spreadsheet/react/filter-cs2/app/app.tsx %}
30+
{% endhighlight %}
31+
{% highlight js tabtitle="datasource.jsx" %}
32+
{% include code-snippet/spreadsheet/react/filter-cs2/app/datasource.jsx %}
33+
{% endhighlight %}
34+
{% highlight ts tabtitle="datasource.tsx" %}
35+
{% include code-snippet/spreadsheet/react/filter-cs2/app/datasource.tsx %}
36+
{% endhighlight %}
37+
{% endtabs %}
38+
39+
{% previewsample "/document-processing/code-snippet/spreadsheet/react/filter-cs2" %}

Document-Processing/Excel/Spreadsheet/React/how-to/find-replace-in-range.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
layout: post
3-
title: Find and replace text in the selected range — React Spreadsheet | Syncfusion
4-
description: Short guide to perform Find & Replace limited to the current selection in the React Spreadsheet.
3+
title: Find and replace in range — React Spreadsheet | Syncfusion
4+
description: Short guide to perform Find & Replace limited to the current selection in Syncfusion React Spreadsheet component of Syncfusion Essential JS 2 and more.
55
control: Spreadsheet
66
platform: document-processing
77
documentation: ug

0 commit comments

Comments
 (0)