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/filter.md
+29Lines changed: 29 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -94,6 +94,35 @@ When you want to reapply the filter after some changes happened in the rows. It
94
94
The following errors have been handled for filtering,
95
95
**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.
96
96
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 %}
Copy file name to clipboardExpand all lines: ej2-asp-core-mvc/spreadsheet/open-save.md
+90Lines changed: 90 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -140,6 +140,35 @@ You can open excel file into a read-only mode by using the [`openComplete`](http
140
140
{% endtabs %}
141
141
{% endif %}
142
142
143
+
### Import an excel document using file uploader
144
+
145
+
If you explore your machine to select and upload an excel document using the file uploader, you will receive the uploaded document as a raw file in the `success` event of the file uploader. In this `success` event, you should pass the received raw file as an argument to the Spreadsheet's `open` method to see the appropriate output.
146
+
147
+
The following code example shows how to import an excel document using file uploader in spreadsheet.
148
+
149
+
{% if page.publishingplatform == "aspnet-core" %}
150
+
151
+
{% tabs %}
152
+
{% highlight cshtml tabtitle="CSHTML" %}
153
+
{% include code-snippet/spreadsheet/open-uploader/tagHelper %}
154
+
{% endhighlight %}
155
+
{% highlight c# tabtitle="Opencontroller.cs" %}
156
+
{% include code-snippet/spreadsheet/open-uploader/opencontroller.cs %}
{% include code-snippet/spreadsheet/open-uploader/razor %}
165
+
{% endhighlight %}
166
+
{% highlight c# tabtitle="Opencontroller.cs" %}
167
+
{% include code-snippet/spreadsheet/open-uploader/opencontroller.cs %}
168
+
{% endhighlight %}
169
+
{% endtabs %}
170
+
{% endif %}
171
+
143
172
### Configure JSON deserialization options
144
173
145
174
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.
@@ -189,6 +218,35 @@ The following code snippet demonstrates how to configure the deserialization opt
189
218
{% endtabs %}
190
219
{% endif %}
191
220
221
+
### To Open Spreadsheet data as a Base64 string
222
+
223
+
In the Syncfusion Spreadsheet component, there is no direct option to open data as a `Base64` string. To achieve this, the `import()` function fetches the `Base64` string, converts it to a Blob, creates a File object from the Blob, and then opens it using the `open` method in the spreadsheet.
224
+
225
+
The following code example shows how to open the spreadsheet data as base64 string.
226
+
227
+
{% if page.publishingplatform == "aspnet-core" %}
228
+
229
+
{% tabs %}
230
+
{% highlight cshtml tabtitle="CSHTML" %}
231
+
{% include code-snippet/spreadsheet/base-64-string/tagHelper %}
232
+
{% endhighlight %}
233
+
{% highlight c# tabtitle="OpenController.cs" %}
234
+
{% include code-snippet/spreadsheet/base-64-string/opencontroller.cs %}
{% include code-snippet/spreadsheet/base-64-string/razor %}
243
+
{% endhighlight %}
244
+
{% highlight c# tabtitle="OpenController.cs" %}
245
+
{% include code-snippet/spreadsheet/base-64-string/opencontroller.cs %}
246
+
{% endhighlight %}
247
+
{% endtabs %}
248
+
{% endif %}
249
+
192
250
### External workbook confirmation dialog
193
251
194
252
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.
@@ -403,6 +461,37 @@ The following code snippet demonstrates how to configure the serialization optio
403
461
{% endtabs %}
404
462
{% endif %}
405
463
464
+
### To Save Spreadsheet data as a Base64 string
465
+
466
+
In the Spreadsheet control, there is currently no direct option to save and open data as a `Base64` string. You can achieve this by saving the Spreadsheet data as blob data and then converting that saved blob data to a `Base64` string using `FileReader`.
467
+
468
+
> You can get the Spreadsheet data as blob in the [saveComplete](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.spreadsheet.spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_SaveComplete) event when you set the `needBlobData` as **true** and `isFullPost` as **false** in the [beforeSave](https://help.syncfusion.com/cr/aspnetcore-js2/syncfusion.ej2.spreadsheet.spreadsheet.html#Syncfusion_EJ2_Spreadsheet_Spreadsheet_BeforeSave) event.
469
+
470
+
The following code example shows how to save the spreadsheet data as base64 string.
471
+
472
+
{% if page.publishingplatform == "aspnet-core" %}
473
+
474
+
{% tabs %}
475
+
{% highlight cshtml tabtitle="CSHTML" %}
476
+
{% include code-snippet/spreadsheet/base-64-string/tagHelper %}
477
+
{% endhighlight %}
478
+
{% highlight c# tabtitle="OpenController.cs" %}
479
+
{% include code-snippet/spreadsheet/base-64-string/opencontroller.cs %}
0 commit comments