Flexgid errors with renderWith in chrome and firefox

Posted by: greg.frazer on 13 December 2017, 6:01 pm EST

    • Post Options:
    • Link

    Posted 13 December 2017, 6:01 pm EST

    when trying to create a flexGrid in Chrome of Firefox

    we get this error

    FireFox:

    
    Error: setting getter-only property "renderWidth"
    copy@http://localhost:5100/Scripts/wijmo5/controls/wijmo.js:493:29
    FlexGrid.prototype._copy@http://localhost:5100/Scripts/wijmo5/controls/wijmo.grid.js:3675:25
    copy@http://localhost:5100/Scripts/wijmo5/controls/wijmo.js:485:40
    Control.prototype.initialize@http://localhost:5100/Scripts/wijmo5/controls/wijmo.js:3484:17
    FlexGrid/<@http://localhost:5100/Scripts/wijmo5/controls/wijmo.grid.js:478:21
    Control.prototype.deferUpdate@http://localhost:5100/Scripts/wijmo5/controls/wijmo.js:3420:17
    FlexGrid@http://localhost:5100/Scripts/wijmo5/controls/wijmo.grid.js:445:17
    gridManagerService/constructor.prototype.initialiseGrid@http://localhost:5100/Content/fbt/components/grid/services/gridManagerService.js:1103:26
    
    
    

    Chrome:

    
    TypeError: Cannot set property renderWidth of #<Column> which has only a getter
        at Object.copy (http://localhost:5100/Scripts/wijmo5/controls/wijmo.js:493:38)
        at FlexGrid._copy (http://localhost:5100/Scripts/wijmo5/controls/wijmo.grid.js:3675:31)
        at Object.copy (http://localhost:5100/Scripts/wijmo5/controls/wijmo.js:485:44)
        at FlexGrid.Control.initialize (http://localhost:5100/Scripts/wijmo5/controls/wijmo.js:3484:23)
        at http://localhost:5100/Scripts/wijmo5/controls/wijmo.grid.js:478:27
        at FlexGrid.Control.deferUpdate (http://localhost:5100/Scripts/wijmo5/controls/wijmo.js:3420:17)
        at new FlexGrid (http://localhost:5100/Scripts/wijmo5/controls/wijmo.grid.js:445:23)
        at constructor.initialiseGrid (http://localhost:5100/Content/fbt/components/grid/services/gridManagerService.js:1103:26)
    
    

    the code in gridManagerService.js at ln1103:

    
    this._grid = new wijmo.grid.FlexGrid(this._hostElement, options);
    
    

    this._hostElement is the Html element for the grid

    options is the flexgrid options

    This error does not occur on IE 11

  • Posted 14 December 2017, 5:44 pm EST

    Hi Greg,

    Could you please share a demo sample for the same since we are unable to replicate the issue at our end.

    Specifically, this._hostElement, how you are getting this.

    ~Manish

Need extra support?

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

Learn More

Forum Channels