Skip to content

Commit eed6e02

Browse files
committed
889454: Moved the section from how to section to feature section.
1 parent e756953 commit eed6e02

12 files changed

+178
-252
lines changed

ej2-asp-core-mvc/spreadsheet/filter.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,35 @@ When you want to reapply the filter after some changes happened in the rows. It
9494
The following errors have been handled for filtering,
9595
* *Out of range validation:* When the selected range is not a used range of the active sheet, it is considered as invalid and the out of range alert with the message `Select a cell or range inside the used range and try again` will be displayed. No filter will be performed if the range is invalid.
9696

97+
## Get the filtered rows
98+
99+
Filtering allows you to view specific rows in a spreadsheet while hiding the others. The [allowFiltering](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.spreadsheet.spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowFiltering) property allows you to enable or disable filtering functionality through the UI. You can also use the [allowFiltering](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.spreadsheet.spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_AllowFiltering) property and `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.
100+
101+
The following code example shows how to get the filtered rows.
102+
103+
{% if page.publishingplatform == "aspnet-core" %}
104+
105+
{% tabs %}
106+
{% highlight cshtml tabtitle="CSHTML" %}
107+
{% include code-snippet/spreadsheet/filter-cs1/tagHelper %}
108+
{% endhighlight %}
109+
{% highlight c# tabtitle="InsertSheetController.cs" %}
110+
{% include code-snippet/spreadsheet/filter-cs1/filterController.cs %}
111+
{% endhighlight %}
112+
{% endtabs %}
113+
114+
{% elsif page.publishingplatform == "aspnet-mvc" %}
115+
116+
{% tabs %}
117+
{% highlight razor tabtitle="CSHTML" %}
118+
{% include code-snippet/spreadsheet/filter-cs1/razor %}
119+
{% endhighlight %}
120+
{% highlight c# tabtitle="InsertSheetController.cs" %}
121+
{% include code-snippet/spreadsheet/filter-cs1/filterController.cs %}
122+
{% endhighlight %}
123+
{% endtabs %}
124+
{% endif %}
125+
97126
## Limitations
98127

99128
The following features have some limitations in Filter:

ej2-asp-core-mvc/spreadsheet/how-to/get-filtered-rows.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

ej2-asp-core-mvc/spreadsheet/how-to/import-an-excel-document-using-file-uploader.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

ej2-asp-core-mvc/spreadsheet/how-to/insert-sheet-programmatically-and-make-it-the-active-sheet.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

ej2-asp-core-mvc/spreadsheet/how-to/print.md

Lines changed: 0 additions & 37 deletions
This file was deleted.

ej2-asp-core-mvc/spreadsheet/how-to/save-and-open-spreadsheet-data-as-base64-string.md

Lines changed: 0 additions & 40 deletions
This file was deleted.

ej2-asp-core-mvc/spreadsheet/how-to/sort-a-range-by-custom-list.md

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)