CollectionView not getting refreshed instantly

Posted by: ankit.jha on 21 August 2022, 11:00 pm EST

  • Posted 21 August 2022, 11:00 pm EST

    After editing the cell from our wijmoGrid that invokes onCellEditEnded method of wijmo , and when clicking on copy for that same row , then the CollectionView.refresh() is getting refreshed sometimes and sometime it’s not getting refreshed.

    Our wijmo view is posted in the attachment alongwith the objects related to collectionView from developer tools of chrome.

    Both the screenshot are explained in the attachment.

    Without editing the cell and just clicking on copy that scenario is working perfectly fine.

    Working & Non-working Scenario Wijmo.zip

  • Posted 22 August 2022, 9:22 pm EST

    Can anyone suggest any solution or an approach for this situation?

  • Posted 23 August 2022, 3:54 pm EST

    Hello,

    We appologize but we are unable to replicate the issue at our end, could you please provide a small sample replicating the issue so that we can investigate the cause of the issue at our end?

    Also, please provide the steps to replicate the issue, as you have mentioned that the behavior is inconsistent.

    Regards

  • Posted 24 August 2022, 5:39 pm EST

    From html file for each row we have this functionality as shared in the zip file

    <a (click)=“copyEmployeeRow(item)” [class.grid-link-selected]=“isCellSelected(cell)”>

    this is from Type Script file the implemenation of copyRow functionality

    copyEmployeeRow(item) {

    const copiedItem = _.cloneDeep(item);

    const row = this.empList.findIndex((value) => JSON.stringify(value) === JSON.stringify(item));
    this.updateEntryNumberAndPushIntoSource(copiedItem, true, row + 1);
    this.empGridCollectionView.refresh();
    

    // some code for validating that row which has been copied

  • Posted 25 August 2022, 8:50 pm EST

    this.empGridCollectionView._edtClone = null;

    this.empGridCollectionView._edtItem = null;

    After putting these two lines manually after the line

    const copiedItem = _.cloneDeep(item);

    The grid is getting refreshed immediately

    So keeping these two lines will not create an issue from wijmo perspective right?

  • Posted 29 August 2022, 12:49 am EST

    Hello,

    I’m unable to see the attached sample zip file you mentioned above, could you please check again?

    Regards

Need extra support?

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

Learn More

Forum Channels