Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

TUTORIALVaadin lets you build secure, UX-first PWAs entirely in Java.
Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Calling javascript synchronously by Enver Haase, 2 weeks ago
TypeError: grid.columns[0] is undefined
Hello guys!
I am usign vaadin grid. I get:
TypeError: grid.columns[0] is undefined
In Firefox as in the title. In Chrome it is working. The code:
var grid = grid || document.querySelector('vaadin-grid');
HTMLImports.whenReady(function() {
// typo3 fluid.. var json = '{f:format.htmlentitiesDecode(value:testJSON)}';
var testJSON = JSON.parse(json); grid.items = testJSON;
// --> ERROR: undefined in firefox
grid.columns[0].renderer = function(cell) {
//...
};
});
Why?
Last updated on
Solved it using
window.addEventListener('WebComponentsReady', function(e) {
instead of
HTMLImports.whenReady(function() {
Last updated on
You cannot reply to this thread.