manolo / gwt-polymer-elements

Polymer Web Components for GWT. A collection of Material Design widgets for desktop and mobile.
Apache License 2.0
155 stars 49 forks source link

Using vaadingrid problem #78

Closed jetswayss closed 8 years ago

jetswayss commented 8 years ago

This vaadingrid is really cool! But I'm having some troubles. I don't how to add one new row and show it on screen.

seeing api of com.vaadin.polymer.vaadin.widget.VaadinGrid , I still don't know how I can achieve the goal.

I figured out that call setItems the first time, It will work.(showing the items on the grid)

grid.setItems(items);

however, calling it the second time , it won't work.

items.push(properties);
grid.setItems(items);
jetswayss commented 8 years ago

After updated the content call clearCache will do the trick.

grid.clearCache()

Saulis helped me with this question.