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.
- C#
- VB.NET
public class GroupList : wxBase
Public Class GroupList
Inherits wxBase
Constructors
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);
GroupList(options)
Constructs a new instance of the GroupList class.
| Name | Type | Description |
|---|---|---|
| options | Object | Initial 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);