Skip to content

Commit 026643f

Browse files
Merge pull request #1825 from syncfusion-content/000000-GettingStart
989310: Resolve error in getting-started page in blazor spreadsheet.
2 parents 643aa12 + e8be05e commit 026643f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Document-Processing/Excel/Spreadsheet/Blazor/getting-started-webapp.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ N> If an **Interactivity Location** is set to `Global` and the **Render Mode** i
216216
{% tabs %}
217217
{% highlight razor %}
218218

219-
<SfSpreadsheet DataSourceBytes="@DataSourceBytes">
219+
<SfSpreadsheet DataSource="DataSourceBytes">
220220
<SpreadsheetRibbon></SpreadsheetRibbon>
221221
</SfSpreadsheet>
222222

@@ -225,8 +225,8 @@ N> If an **Interactivity Location** is set to `Global` and the **Render Mode** i
225225

226226
protected override void OnInitialized()
227227
{
228-
string filePath = "wwwroot/Sample.xlsx";
229-
DataSourceBytes = File.ReadAllBytes(filePath);
228+
string filePath = "wwwroot/Sample.xlsx";
229+
DataSourceBytes = File.ReadAllBytes(filePath);
230230
}
231231
}
232232

Document-Processing/Excel/Spreadsheet/Blazor/getting-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ Add the Syncfusion<sup style="font-size:70%">&reg;</sup> Blazor Spreadsheet comp
144144

145145
Note: Due to browser-level restrictions in WebAssembly (WASM), the method File.ReadAllBytes is not supported. As a result, the sample implementations provided use a Base64-encoded Excel file to import data. This approach ensures compatibility with WASM environments, where direct file system access is limited. Instead of reading the file from disk, the Excel content is embedded or passed as a Base64 string, which is then decoded within the application to simulate file input. This method allows seamless data import while adhering to the constraints of the WebAssembly runtime.
146146

147-
<SfSpreadsheet DataSourceBytes="@DataSourceBytes">
147+
<SfSpreadsheet DataSource="DataSourceBytes">
148148
<SpreadsheetRibbon></SpreadsheetRibbon>
149149
</SfSpreadsheet>
150150

0 commit comments

Comments
 (0)