Search results

QueryBuilderModel

Interface for a class QueryBuilder

Properties

beforeChange

EmitType<ChangeEventArgs>

Triggers before the condition (And/Or), field, operator, value is changed.

change

EmitType<ChangeEventArgs>

Triggers when changing the condition(AND/OR), field, value, operator is changed

created

EmitType<Event>

Triggers when the component is created.

ruleChange

EmitType<RuleChangeEventArgs>

Triggers when changing the condition(AND/OR), field, value, operator is changed

allowValidation

boolean

Enables or disables the validation.

columns

ColumnsModel[]

Specifies columns to create filters.

cssClass

string

Defines class or multiple classes, which are separated by a space in the QueryBuilder element. You can add custom styles to the QueryBuilder using the cssClass property.

dataSource

Object[] | Object | DataManager

Binds the column name from data source in query-builder. The dataSource is an array of JavaScript objects.

displayMode

string

Specifies the displayMode as Horizontal or Vertical.

enablePersistence

boolean

Enable or disable persisting component’s state between page reloads. If enabled, filter states will be persisted.

enableRtl

boolean

Enable or disable rendering component in right to left direction.

height

string

Specifies the height of the query builder.

locale

string

Overrides the global culture and localization value for this component. Default global culture is ‘en-US’.

matchCase

boolean

If match case is set to true, the grid filters the records with exact match. if false, it filters case insensitive records (uppercase and lowercase letters treated the same).

maxGroupCount

number

Specifies the maximum group count or restricts the group count.

rule

RuleModel

Defines rules in the QueryBuilder. Specifies the initial rule, which is JSON data.

showButtons

ShowButtonsModel

Specifies the showButtons settings of the query builder component. The showButtons can be enable Enables or disables the ruleDelete, groupInsert, and groupDelete buttons.

sortDirection

string

Specifies the sort direction of the field names.

summaryView

boolean

Shows or hides the filtered query.

width

string

Specifies the width of the query builder.