HOW TO RENDER GRID TOOLBAR AFTER GRID HEADERS READY ?

i build syncfusion grid with grid headers set by dinamic data from api. i've successfully do that, but my toolbar not rendered. i think, maybe the toolbars not rendered because when initialize grid dont have grid header so that toolbar not rendered. 

any solution ?

Regards,

Tony

1 Reply

SK Sujith Kumar Rajkumar Syncfusion Team December 4, 2020 06:55 AM UTC

Hi Tony, 
 
Greetings from Syncfusion support. 
 
We checked the reported problem and suspect it might be occurring because the Grid’s toolbar module is not injected in your angular application. This is demonstrated in the below code snippet, 
 
App.module.ts 
import { GridModule, ToolbarService} from '@syncfusion/ej2-angular-grids'; 
 
import { AppComponent } from '../app.component'; 
 
@NgModule({  
   declarations: [ AppComponent ], 
   imports: [GridModule, ...], 
   providers: [ToolbarService] 
}) 
export class AppModule { } 
 
 
We have prepared a sample based on this for your reference. You can find it below, 
 
 
The list of available Grid features and the modules that need to be injected for including them can be checked from the below links, 
 
 
 
More details on the toolbar feature can be checked in the below documentation link, 
 
 
So please ensure this case and if you have already injected the toolbar module but problem still persists, then please share us the following information to validate further on this, 
 
  • Pictorial representation of the rendered Grid.
  • Are any console errors thrown?
  • Grid code file and app.module.ts file.
  • Syncfusion package version used.
  • If possible share us a simple sample to replicate the problem or try reproducing it in the above provided sample.
 
Let us know if you have any concerns. 
 
Regards, 
Sujith R 


Loader.
Up arrow icon