Wijmo grid not loading

Posted by: saisreeja.gadi on 18 July 2023, 2:46 am EST

  • Posted 18 July 2023, 2:46 am EST - Updated 18 July 2023, 2:56 am EST

    Hi,

    I have Parent component and child component. I have a grid in child component.

    when I click on button present in the parent component, Calling initTabsInfo() method. there we are forming grid data.

    Grid is not loading

    ParentCompoent.html

    parentcompoent.ts

    
    viewChanges(){
    this.childComponent.initTabsInfo(this.reportChanges.target.has.data[0], this.reportChanges.source.has.data[0]);
    }

    ChildCompoent.html

    childComponent.ts

    [code] flexInitialized(grid: FlexGrid): void {

    this.gridInfo.push(grid);

    grid.autoSizeColumns();

    }

    tabInit(tabPanel: any) {

    this.tabPanel = tabPanel;

    tabPanel.selectedIndexChanged.addHandler((s: any, e: any) => {

    let index = s.selectedIndex;

    this.gridInfo[index].autoSizeColumns();

    })

    }

    initTabsInfo(targetContainerID, sourceContainerId){

    this.isLoaderBusy = true;

    console.log(“this.initTabsInfo”,targetContainerID, sourceContainerId, this.tabHeaders);

    this.tabHeaders$ = of(this.tabHeaders);

    concat(this.tabHeaders$.pipe(

    mergeAll(),

    concatMap((tab)=>{

    console.log(“tab”, tab);

    return this.templateService.getTabsGridData(tab, targetContainerID, sourceContainerId);

    }),

    toArray()

    )).subscribe((response)=>{

    console.log(“response”, response);

    response.map(res=>{

    console.log(“res”,res);

    this.tabsInfo.push({

    header: res.tabHeader,

    data: res.result

    });

    })

    },(error) => {

    },()=>{

    console.log(“complete”, this.tabsInfo);

    })

    }[/code]

  • Posted 18 July 2023, 4:32 pm EST

    Hi,

    Sorry, but we are unable to replicate the issue on our end, could you please share a small sample in which the issue can be replicated, so that we can have a better idea of your project structure and assist you accordingly?

    Here’s the sample in which we tried to replicate the issue - https://stackblitz.com/edit/angular-ivy-3pikyr?file=src%2Fapp%2Ftab-panel-grids%2Ftab-panel-grids.component.ts

    You can also update the above sample to replicate your issue and share it with us. In case, if there is something we missed, please let us know.

    Regards

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels