Search results

Getting started with ASP.NET Core Spreadsheet control

16 Sep 2021 / 1 minute to read

This section briefly explains about how to create a simple Spreadsheet in your ASP.NET Core application. You can refer ASP.NET Core Getting Started documentation page for introduction part of the system requirements and configure the common specifications.

Add Spreadsheet to the project

Spreadsheet component can be rendered by using the ejs-spreadsheet tag helper in ASP.NET Core application. Add the below simple code to your index.cshtml page which is available within the Views/Home folder, to initialize the Spreadsheet.

tagHelper
spreadsheet.cs
Copied to clipboard
<ejs-spreadsheet  id="spreadsheet">

</ejs-spreadsheet>
Copied to clipboard
public IActionResult Index()
{
    return View();
}

Output be like the below.

Spreadsheet Sample

Run the application

The following example shows a basic Spreadsheet component.

tagHelper
spreadsheet.cs
Copied to clipboard
<ejs-spreadsheet  id="spreadsheet">

</ejs-spreadsheet>
Copied to clipboard
public IActionResult Index()
{
    return View();
}

You can refer to our ASP.NET Core Spreadsheet feature tour page for its groundbreaking feature representations. You can also explore our ASP.NET Core Spreadsheet example that shows you how present and manipulate data, including editing, formulas, formatting, importing, and exporting.

See Also