Hi Rafael,
Greetings from Syncfusion support.
Based on the provided information, we could understand that your requirement is to initially hide the EJ2 query builder component(rendered on the Grid toolbar) and then display it once the Grid rendering is completed. You can achieve this by setting the initial display CSS style as ‘none’ to the query builder element class(‘.e-query-builder’) and then changing the display back to ‘block’ in the Grid’s dataBound event as demonstrated in the below code snippets,
app.component.css
|
.e-query-builder {
display: none;
} |
app.component.ts
|
import { QueryBuilderComponent } from '@syncfusion/ej2-angular-querybuilder';
export class AppComponent {
@ViewChild('querybuilder') qryBldrObj: QueryBuilderComponent;
// Grid’s dataBound event handler
dataBound() {
// This event will be triggered each time the grid data is modified, so flag variable is used so that this case is executed only on Grid initial render
if (this.initialFlag) {
this.qryBldrObj.element.style.display = "block";
}
this.initialFlag = false;
}
} |
If we misunderstood your query or if you require any further assistance, then please get back to us.
Regards,
Sujith R