I am trying to create a grid with configurable columns. The grid load the dynamic columns initially but if I try to update the property that changes the column order then the grid fails with error uncaught (in promise) TypeError: Cannot read property 'nodeType' of null
.
columns property has the configurable columns and below is my template
${columns[0]
? html`
<vaadin-grid-column-group resizable>
<template class="header">
<vaadin-grid-sorter
path="${columns[0]
.Value.toLowerCase()}">
${columns[0]
.Header}
${this.getCustomTemplates(columns[0]
)}
`: html``}
The columns property will hold the configurable columns and the data is provided to the vaadin-grid using the .items=${_data}
.