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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Creation of Dynamic Tabs that contains grid inside

Thread ID:

Created:

Updated:

Platform:

Replies:

149186 Nov 18,2019 08:41 AM UTC Nov 19,2019 11:22 AM UTC Angular - EJ 2 1
loading
Tags: Tab
otto pegotti
Asked On November 18, 2019 08:41 AM UTC

Hi,

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.

Otto

Vinitha Devi Murugan [Syncfusion]
Replied On 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; 
    } 
  } 
 
Regards, 
M.Vinitha devi 


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon