allowAutoAddRow with autoRowHeight, allowHeaderSelect

Posted by: bebeo92 on 8 September 2017, 9:18 am EST

  • Posted 8 September 2017, 9:18 am EST

    Hi,

    I tried AutoAddRow.html (Spread.Views) and It worked fine, but when I add more config for autoRowHeight and allowHeaderSelect as below
    var dataView = new GC.Spread.Views.DataView(document.getElementById('grid1'), data,
    new GC.Spread.Views.Plugins.GridLayout({
    allowEditing: true,
    allowAutoAddRow: true,
    autoAddRowPosition: 'bottom',
    autoRowHeight: true,
    allowHeaderSelect: true
    }));

    I got error: Uncaught TypeError: Cannot read property 'node' of null

    Thanks
  • Marked as Answer

    Replied 8 September 2017, 9:18 am EST

    Hi,

    I tried this code with 10.1.0 and it worked for me. When exactly do you get the error?

    var dataView = new GC.Spread.Views.DataView(document.getElementById('grid1'), data, new GC.Spread.Views.Plugins.GridLayout({
    allowEditing: true,
    allowAutoAddRow: true,
    autoAddRowPosition: 'bottom',
    autoRowHeight: true,
    allowHeaderSelect: true
    }));

    -Gina
Need extra support?

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

Learn More

Forum Channels