Flexgrid not displaying text in Header atttribute

Posted by: chandrasekar_keerthana on 6 February 2019, 7:20 pm EST

  • Posted 6 February 2019, 7:20 pm EST - Updated 3 October 2022, 11:06 am EST

    Hi Team,

    After integrating with the latest Wijmo build(), I see that the column headers displayed in my grid is not the text provided to the header attribute but it is displaying the text from the binding attribute. I have attached a screenshot of the same.

    grid = new wijmo.grid.FlexGrid(hostElem, {

    autoGenerateColumns: false,

    columns: [

    { binding: ‘VALIDATION_MESSAGE’, header: ‘Validation’, width: COL_WIDTH_100, isReadOnly: true }

    ]});

    It is supposed to display “Validation” in this case.

    Please let me know if there’s any change with the flexgrid properties.

    Thanks,

    Keerthana

  • Posted 7 February 2019, 4:45 pm EST

    Hi Keertana,

    We are sorry but we are unable to replicate the issue at our end. Could you please have a look at the following sample and let us know if we are missing something in order to replicate the issue:

    https://stackblitz.com/edit/js-e14cjj?file=index.js

    Also, from the shared snapshot, it seems like FlexSheet control instead of the FlexGrid, please let us know if the issue is with the FlexSheet control instead.

    ~Sharad

  • Posted 7 February 2019, 9:04 pm EST

    Hi Sharad,

    We are adding a bound sheet to the flexSheet, passing the flexGrid . Pls check the snippet below.

    sheet= new wijmo.grid.sheet.FlexSheet(id);

    sheet.addBoundSheet(‘New sheet’,sheet_data, 0, grid);

    Thanks,

    Keerthana

  • Posted 10 February 2019, 3:56 pm EST

    Hi Keerthana,

    We are able to replicate the issue at our end and it seems like a regression in build 5.20183.568. We have asked the concerned team to look into it. Internal tracking Id for the issue is 366431. We will let you know about any updates regarding this.

    Thanks for reporting.

  • Posted 10 February 2019, 8:47 pm EST

    Hi Sharad,

    Thanks for acknowledging.

    Is there a work around to fix this?

    And when is your next release planned for?

  • Posted 11 February 2019, 4:03 pm EST

    We could use the formatItem event as a workaround.

    Please refer to the following code snippet:

    flexSheet.formatItem.addHandler(function(s,e){
      if(e.panel.cellType != wijmo.grid.CellType.Cell){
        return;
      }
      let row = e.panel.rows[e.row];
      if(row instanceof wijmo.grid.sheet.HeaderRow){
        let grid = s.selectedSheet.grid;
        e.cell.innerText = grid.columns[e.col].header;
      }
    });
    

    You may also refer to the following sample demonstrating the same: https://stackblitz.com/edit/js-ekj6c8?file=index.js

    The next stable release is planned for March end. If everything goes well, it would be published in the 2nd - 3rd week of March. :slight_smile:

  • Posted 8 April 2019, 10:45 pm EST

    Hi Sharad,

    Any update on the above regression issue with id : 366431 ?

    This new version 5.20183.568 broked many things.

    even ------- flexSheet.evaluate(“2+2”) is not working. Our all calculation throughout the application is not working.

    Can you help me with flexsheet.evaluate() method ?

  • Posted 10 April 2019, 1:28 am EST

    Hello,

    flexSheet.evaluate() method not working

    We are sorry but we were unable to replicate the issue at our end. Please refer to the sample that we used to replicate the issue:

    https://jsfiddle.net/xw4sfuk8/

    Feel free to modify the sample so that it replicates the issue.

Need extra support?

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

Learn More

Forum Channels