Skip to main content

Query

Namespace: Wisej.Web.Ext.Webix

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

Query is designed to extend the variety of the Webix widgets. The widget contains a built-in Filter for creating and combining filters of any complexity.

public class Query : wxBase

Constructors​

Instance member Query()​

Constructs a new instance of the Query class.

Example:

The following example creates a query builder and declares the fields that can be used in the filters.

var query = new Query();
query.Options.fields = new[]
{
new { id = "name", value = "Name", type = "text" },
new { id = "age", value = "Age", type = "number" }
};
query.Dock = DockStyle.Fill;
this.Controls.Add(query);

Instance member Query(options)​

Constructs a new instance of the Query class.

NameTypeDescription
optionsObjectInitial set of options.

Example:

The following example creates a query builder passing the fields and the data that provides the values suggested in the filters.

var query = new Query(new
{
fields = new[]
{
new { id = "first_name", value = "First name", type = "text" },
new { id = "age", value = "Age", type = "number" }
},
data = new[]
{
new { first_name = "Daniel", age = 26 },
new { first_name = "Ronald", age = 34 }
}
});
query.Dock = DockStyle.Fill;
this.Controls.Add(query);

Implements​