Skip to main content

kendoGrid

Namespace: Wisej.Web.Ext.Kendo

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

The Grid is a powerful control for displaying data in a tabular format.

public class kendoGrid : kendoBase

Constructors​

Instance member kendoGrid()​

Constructs a new instance of the kendoGrid class.

Example:

The following example creates a grid and binds it to an in-memory list through the Options property.

var grid = new kendoGrid();
grid.Options.dataSource = customers;
grid.Options.sortable = true;
grid.Options.columns = new object[]
{
new { field = "name", title = "Name" },
new { field = "city", title = "City", width = 160 }
};
grid.Dock = DockStyle.Fill;
this.Controls.Add(grid);

Instance member kendoGrid(options)​

Constructs a new instance of the kendoGrid class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a pageable, sortable and filterable grid bound to an in-memory list.

var grid = new kendoGrid(new
{
dataSource = new { data = orders, pageSize = 20 },
pageable = true,
sortable = true,
filterable = true,
columns = new object[]
{
new { field = "orderId", title = "Order", width = 100 },
new { field = "customer", title = "Customer" },
new { field = "total", title = "Total", format = "{0:c2}" }
}
});
grid.Dock = DockStyle.Fill;
this.Controls.Add(grid);

Implements​