bwu-dart / bwu_datagrid

A data-grid Polymer element in Dart
MIT License
74 stars 26 forks source link

Update Data in Grid #69

Closed cassiot closed 8 years ago

cassiot commented 10 years ago

How do I update data and refresh grid?

I'm filling it after a button click. First time is ok but it is not cleaning old data in it. All examples only show static grids.

I tried grid.nodes.clear() before setting it up again but it didn't work.

Thanks for this amazing work!

zoechi commented 10 years ago

I think the addnewRowHandler https://github.com/bwu-dart/bwu_datagrid/blob/master/example/src/e03_editing/app_element.dart#L82 is a good example. If you have further questions don't hesitate to ask