Skip to main content

GroupList

Namespace: Wisej.Web.Ext.Webix

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

UI-related grouplist inherits from list and allows presenting data in groups. Data grouping is hierarchical, which means that any group item can start its own group.

public class GroupList : wxBase

Constructors​

Instance member GroupList()​

Constructs a new instance of the GroupList class.

Example:

The following example creates a grouped list; the items that have a nested data collection become groups.

var list = new GroupList();
list.Options.select = true;
list.Options.data = new[]
{
new { value = "Europe", data = new[] { new { value = "Italy" }, new { value = "France" } } },
new { value = "Asia", data = new[] { new { value = "Japan" }, new { value = "India" } } }
};
list.Size = new Size(300, 400);
this.Controls.Add(list);

Instance member GroupList(options)​

Constructs a new instance of the GroupList class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a grouped list with different templates for the groups, the items and the header used to go back.

var list = new GroupList(new
{
templateGroup = "#value#",
templateItem = "#value# (#year#)",
templateBack = "Back to #value#",
data = new[]
{
new { value = "Drama", data = new[] { new { value = "The Godfather", year = 1972 } } },
new { value = "Crime", data = new[] { new { value = "Pulp Fiction", year = 1994 } } }
}
});
list.Size = new Size(300, 400);
this.Controls.Add(list);

Implements​