Skip to main content

ejSpreadsheet

Namespace: Wisej.Web.Ext.Syncfusion

Assembly: Wisej.Web.Ext.Syncfusion (4.1.0.0)

The Spreadsheet control is a Microsoft Excel-like Spreadsheet component for web. It provides editing experience that is very similar to that of Excel and it is able to import and export Excel workbook files. The Spreadsheet control includes all the important features of Microsoft Excel like editing, sorting, filtering, formulas, data validation, formatting, table, charts, import and export.

public class ejSpreadsheet : ejBase

When the widget is created, the wrapper sets the importSettings.importMapper option and the excelUrl, csvUrl and pdfUrl fields of the exportSettings option to the service URL of this control, replacing the values specified in the options. The import and export requests sent by the widget are therefore sent to this control and are received by the application through the WebRequest event; the export requests carry the format query string parameter set to xlsx, csv or pdf.

The wrapper also sets the scrollSettings.width and scrollSettings.height options and refreshes the widget every time the control is resized.

Constructors​

Instance member ejSpreadsheet()​

Constructs a new instance of the ejSpreadsheet class.

Example:

The following example creates the spreadsheet and loads a list in the first sheet through the options.

var spreadsheet = new ejSpreadsheet();
spreadsheet.Options.sheets = new[]
{
new
{
rangeSettings = new[] { new { dataSource = products, startCell = "A1" } }
}
};
spreadsheet.Dock = DockStyle.Fill;
this.Controls.Add(spreadsheet);

Instance member ejSpreadsheet(options)​

Constructs a new instance of the ejSpreadsheet class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a spreadsheet with three sheets and handles the import and export requests of the widget.

var spreadsheet = new ejSpreadsheet(new
{
sheetCount = 3,
showRibbon = true
});
spreadsheet.WebRequest += this.spreadsheet_WebRequest;
spreadsheet.Dock = DockStyle.Fill;
this.Controls.Add(spreadsheet);

Implements​