Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
How to make the first row in two different grids in tab groups to be selected on form load
posted

Hi,

I have a scenario where I have two grids in igx-tabs-group and on form load by default I need the first rows in both grids should be selected.

I have the below two lines of code in ngAfterViewInit() and I see on the first grid row is being selected and highlighted whereas in second grid the row is not selected.

this.grid1.selectRows(['1'], true);

this.grid1.markForCheck();


this.grid2.selectRows(['1'], true);

this.grid2.markForCheck();

Thanks,

Mani

Parents
No Data
Reply Children
No Data