Comments (4)
I think the warning can be safely ignored, although it is annoying. We can see if we can get rid of that completely.
The second issue sounds more like it’s an actual problem. Can you share the code which causes it?
from vaadin-grid.
I'm having the same issues when trying to use the vaadin-grid component in my Polymer application.
The header is rendered but the contents remain empty.
Code relevant to the issue:
inside my template I have a v-grid element:
...
<v-grid>
<table>
<col name="date" header-text="Date">
<col name="time" header-text="Time">
<col name="action" header-text="Action">
<col name="creditsLeft" header-text="Available Credits">
<col name="fileName" header-text="Description">
</table>
</v-grid>
...
(I have also tried different approaches such as using index. as a prefix for the names)
iron-ajax element which is fired asynchronously from another location (so not on ready).
...
<iron-ajax handle-as="json"
method="GET"
on-response="handleCreditEntriesResponse"
response="{{creditsEntriesResponse}}"
headers="{{headers}}"
loading="{{loading}}"
on-error="onCreditsEntriesError"
content-type="application/json"
id="conversionHistoryAjax">
</iron-ajax>
...
Inside my Polymer({}) definitions:
...
handleCreditEntriesResponse: function(creditsEntriesResponse) {
...
var grid = document.querySelector('v-grid');
grid.source = creditsEntriesResponse.detail.response;
...
}
...
Also, in your tutorials you use grid.data.source but this causes a 'data' undefined error.
I have tried with "inline" data and I can't seem to get that to work either (I used the format specified in the vaadin-grid-doc.html document).
from vaadin-grid.
Hi @WilliamQAFE,
The document.write is irrelevant for your issue, it’s just a warning, and we know about it and it doesn’t affect the functionality of the component.
The reason for grid.data
being undefined is most likely because you try to access it before the custom element is upgraded and the component API is available. grid.source
will definitely not do anything.
What version of vaadin-components are you using? Be sure to use the latest 0.3.0-beta1, since we fixed a major asynchronous loading issue related to the element upgrading on polyfilled browsers in that version. The current version you get from bower without specifying a version number is 0.2.1.
from vaadin-grid.
We are using the latest 0.3.0-beta1 version indeed.
I got the data.source thing to work if I set it in the ready function. So all is well.
Thanks for the feedback!
from vaadin-grid.
Related Issues (20)
- TypeScript generics to allow declaring GridItem type HOT 1
- vaadin grid current row highlight issue HOT 1
- TreeGrid regression since 14.4.3 HOT 9
- Ellipses in selection column HOT 4
- 18.0.3 breaks grid in grid details HOT 1
- setItemDetailsRenderer in Vaadin 14.4.5 produce (TypeError) : $0.$connector HOT 1
- Clearing grid filtering is not working HOT 2
- Scrolling in a grid on iOS (Safari, Chrome) impossible HOT 6
- Grid.getDataProvider().refreshAll() length must not be negative HOT 1
- Grid with item details opened- after item deleting and grid refreshing attribute 'details-opened' stays in a row
- Client-side exception thrown when hiding column, add item, and refresh data provider HOT 4
- Grid: AppendFooterRow produces an Error when appending more than 8 FooterRows HOT 1
- TreeGrid regression regarding garbled scrolling output HOT 3
- Vaadin-grid horizontal scroll issue in iOS 14 HOT 15
- Getter for grid's selection mode HOT 2
- Sorting indicators are not preserved when column order is changed using Grid#setColumnOrder
- Grid throws UnsupportedOperationException if buffered editor is open during PreserveOnRefresh HOT 4
- Grid column width is calculated wrong on Safari 14.0.3 (Big Sur) HOT 6
- GridPro "out of memory" on Firefox facing 1k Strings HOT 3
- TypeError: Cannot read properties of undefined (reading '_content') in Chrome Browser HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vaadin-grid.