BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Is this a bug? Or how can I get this to work with the column freezing being on?
Hi Eric,
Greetings from Syncfusion Support.
Query: Issue loading grid data when two grids are on angular material tabs
We have analyzed your query about having issue in rendering grid when using material tab and freeze column. We have validated your requirement and we cannot replicate the issue you have face. We have attached a stackblitz sample for your reference.
Sample: https://stackblitz.com/edit/angular-fxbzp7-vohmjm?file=app.component.ts
Can you please share the following details which will be helpful for us to identify the issue and give a better solution.
Regards,
Dineshnarasimman
I have updated the stackblitz you provided here:
https://angular-fxbzp7-ywlqcd.stackblitz.io
https://stackblitz.com/edit/angular-fxbzp7-ywlqcd?file=app.component.html
Hi Eric,
Query: The data is all misaligned when switching tabs and when you sort a column the data corrects itself.
We have analyzed your query about the data misalignment when tabs are switching in material tab. We have validated your query and we suggest you to use freezeRefresh() method on the grid in the selectTabChange event of the mat-tab-group tag to achieve your requirement. We have attached the code snippet and a sample for your reference.
App.component.html
<mat-tab-group (selectedTabChange)="TabChange($event)">
|
App.component.ts
TabChange(e: any):void { this.transactionGrid.freezeRefresh(); this.distributionGrid.freezeRefresh(); }
|
Please let us know if you need any further assistance.
Regards,
Dineshnarasimman
Your solution works. Thank you.
Hi Eric,
We are glad that the solution provided worked. Please get back to us for further assistance.
We are marking this thread as solved.