We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Creation of Dynamic Tabs that contains grid inside


I need a solution for creating tabs depends on the database results and whenever i select different tabs it should change the data source of the grid inside.
Datagrid is located already in html file <ejs-grid #grid [dataSource]='data' > <ejs-grid>
Thanks in advance for your  help.


1 Reply

VD Vinitha Devi Murugan Syncfusion Team November 19, 2019 11:22 AM UTC

Hi otto, 
Syncfusion Greetings.  
You can change the dataSource of the grid on tab selection by making use of selecting event of the tab. Please refer below sample. 
 public onTabSelecting(args: any) { 
    // Here we changed the dataSource of first grid on tab selecting event 
    if (args.selectingIndex == 0) { 
      this.grid1.dataSource = orderDetails; 
M.Vinitha devi 

Live Chat Icon For mobile
Up arrow icon