Hello Sujith,
Sorry, I thought the problem was the refresh but I realize that the problem is when I filter something with query builder. I am filtering doing that:
updateRule(args: RuleChangeEventArgs): void {
const predicate: Predicate = this.qryBldrObj.getPredicate(args.rule);
const fltrDataSource: Object[] = [];
let dataManagerQuery: Query;
if (isNullOrUndefined(predicate)) {
//dataManagerQuery = new Query().select(['OrderID', 'CustomerID', 'Freight', 'OrderDate', 'ShipCountry', 'ShipCity', 'ativo']);
dataManagerQuery = new Query().select(['numero', 'descricao', 'clienteCnpjCpf', 'clienteNomeRazaoSocial', 'parcelaAtual', 'dataInicio', 'dataFim', 'dataReajuste', 'dataBaixa']);
} else {
//dataManagerQuery = new Query().select(['OrderID', 'CustomerID', 'Freight', 'OrderDate', 'ShipCountry', 'ShipCity', 'ativo']).where(predicate);
dataManagerQuery = new Query().select(['numero', 'descricao', 'clienteCnpjCpf', 'clienteNomeRazaoSocial', 'parcelaAtual', 'dataInicio', 'dataFim', 'dataReajuste', 'dataBaixa']).where(predicate);
}
new DataManager(this.contratos)
.executeQuery(dataManagerQuery)
.then((e: ReturnOption) => {
(<Object[]> e.result).forEach((data: Object) => {
fltrDataSource.push(data);
});
});
this.gridDataSource = fltrDataSource;
console.log(this.grid);
//this.grid.refresh();
}After run this line:
this.gridDataSource = fltrDataSource;
My column "Assinado" loses the content:
The versions of Syncfusion:
"@syncfusion/ej2-angular-calendars": "^18.2.44",
"@syncfusion/ej2-angular-dropdowns": "^18.2.44",
"@syncfusion/ej2-angular-grids": "^18.2.44",
"@syncfusion/ej2-angular-navigations": "^18.2.44",
"@syncfusion/ej2-angular-querybuilder": "^18.2.44",
"@syncfusion/ej2-angular-splitbuttons": "^18.2.44",
Thank you