Flexsheet: with latest upgrade, focus out from cell giving errors

Posted by: petiwaladhaval on 11 November 2018, 5:49 pm EST

    • Post Options:
    • Link

    Posted 11 November 2018, 5:49 pm EST

    Hi,

    We are using Flexsheet with Angular4, After upgrading to latest wijmo this below issue is coming in flexsheet.

    steps to reproduce:

    1. write something in a cell.
    2. then without tabout from cell, directly click on SAVE
    3. then in itemformatter ,flexsheet.columns giving 0

    So all the code related to column in itemformatter is undefined and not working properly. Please provide solution for the above issue.

    Thanks,

    Dhaval

  • Posted 12 November 2018, 7:48 pm EST

    Any updates on this issue?

    Thanks in advance.

  • Posted 12 November 2018, 9:03 pm EST

    Hi Dhaval,

    We apologize for the late response.

    We are unable to find any attached sample on which we have to trace the mentioned steps. Could you please attach the sample again?

    Regards

    Sharad

  • Posted 13 November 2018, 10:48 pm EST - Updated 3 October 2022, 11:18 am EST

    Hi,

    The issue is coming while clicking Save button(while making a DB call). It will be helpful if you can create any demo with save functionality.

    If we are editing something in cell and without tab out on clicking Save, itemformatter event calls and there flexsheet.columns becoming 0 which making some run time issues(undefined issues).

    And these issues we are facing after upgrading to version “5.20182.524”.

    flexSheet.itemFormatter = (panel, r, c, cell) => {

    var imgIndex;

    var flex = panel.grid,

    rowEntity, cellStyle, column, requiredIndex, currencyIndex;

    var col = flex.columns[c];

    if (col.isRequired == true) {

    requiredIndex = c;

    } else {

    requiredIndex = null;

    }

    please find the attached console error.

    Thanks,

    Sasmita

  • Posted 14 November 2018, 3:53 pm EST

    Hi,

    Any suggestion on the above issue ?

    Thanks,

    Sasmita

  • Posted 14 November 2018, 7:19 pm EST

    Hi Sasmita,

    We have created a sample application based on the code snippet but we are unable to replicate the issue.

    Please have a look at it and let us know if we are missing something to replicate the issue.

    https://stackblitz.com/edit/angular-v6z2nw?file=app%2Fapp.component.ts

Need extra support?

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

Learn More

Forum Channels