Hi,
There appears to be an issue with using boolean types for complex binding.
https://ej2.syncfusion.com/angular/documentation/query-builder/data-binding/#complex-data-binding
I'm unable to set the rules using setRulesFromSql.
For example I added BoolExample field:
this.columns1 = [
{ field: 'ID', label: 'ID', type: 'number'},
{ field: 'DOB', label: 'Date of birth', type: 'date'},
{ field: 'HireDate', label: 'Hire Date', type: 'date'},
{ field: 'Salary', label: 'Salary', type: 'number'},
{ field: 'Age', label: 'Age', type: 'number'},
{ field: 'Title', label: 'Title', type: 'string'},
{ field: 'BoolExample', label:'BoolExample', type: 'boolean', values: this.values}
]
Then I updated
onSetSqlRules(e:Event): void {
this.qryBldrObj.setRulesFromSql("Employee.ID = 0 AND Employee.BoolExample = false Name.LastName LIKE ('%malan%') AND (Country.State.City LIKE ('U%') AND Country.Region LIKE ('%c') AND Country.Name IS NOT EMPTY)");
}
I'm unable to get the query builder to show the selected false value.
Thanks,
Chris