Questions tagged [bwu-datagrid]

BWU Datagrid is an advanced Polymer.dart grid/spreadsheet component inspired by the JavaScript SlickGrid component.

Use this tag for questions about how to use BWU Datagrid in your Dart application or how to use specific features of BWU Datagrid.

BWU Datagrid is a Dart port of the SlickGrid grid/speadsheet component and can currently only be used in Dart applications due to current limitations in Polymer.dart. BWU Datagrid is optimized for speed and high number of records.

The source code available at https://github.com/bwu-dart/bwu_datagrid and contains a lot of examples that demonstrate its features and how to use them.

The package is also available at http://pub.dartlang.org (https://pub.dartlang.org/packages/bwu_datagrid)

24 questions
4
votes
1 answer

bwu_datagrid - how to disable call of Editor for some cells in column?

I use bwu_datagrid and some columns in my datagrid have cells that I don't want to be edited. Is there an existing way for this in bwu_datagrid? Returning null in Editor.newInstance(EditorArgs) brings to exception in _currentEditor.loadValue.
3
votes
0 answers

Get row id from selected bwu_data_grid row

I subscribe on bwu click event: grid.onBwuClick.listen((e) { int id = grid.dataProvider.items[e.cell.row]['id']; }); And I have pagination for table. When clicked row on first page I get right row id. But on other pages I get id of row from…
3
votes
1 answer

How to differentiate Dart types

I have the following types: class AddressEditor extends TextEditor {} class TypeEditor extends TextEditor {} I tried to identify the editors as such: void validationErrorHandler( ValidationError e ) { var editor = e.editor; if( editor is…
st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75
2
votes
1 answer

PercentCompleteEditor allows values > 100 in bwu_datagrid

PercentCompleteEditor allows to enter values > 100 and < 0 without any error/warning in bwu_datagrid.
user5033464
2
votes
1 answer

Dart bwu_datagrid error

I run this code from bwu_datagrid example in Dart Editor: pubspec.yaml name: 'basicExample' version: 0.0.1 description: A web app built using polymer.dart. environment: sdk: '>=1.0.0 <2.0.0' dependencies: browser: '>=0.10.0 <0.11.0' polymer:…
2
votes
2 answers

How to refresh data in a bwu_datagrid

I'm attempting to refresh an existing datagrid in the following manner, but that results in rendering errors, like rows still appearing. What is the appropriate way to do this? void onData( Map data_ ){ if( identical(data,data_) )…
1
vote
1 answer

Two BwuDatagrids on one page

I have polymer paper layout with paper-drawer-panel and two Polymer components contains BwuDatagrid elements. And I get some troubles when two components with bwu-datagrid tags rendered on one page: But if didn't render component in…
1
vote
0 answers

bwu_datagrid, lingering sorting indicators after reseting a dataView

I'm using a "dataView" sans groups for my grid's dataprovider. After reseting the dataprovider, my last "sorted" column header remains on display along with the sorting arrow. Is there a way to force the columns "reset" all sorting indicators,…
Alex L.
  • 416
  • 1
  • 4
  • 14
1
vote
1 answer

bwu_datagrid, how to override row background colors and add a row :hover color

I'm trying to override the odd/even colors and give the row a ":hover" background color, but I cannot override: undefined .bwu-datagrid-row.odd, .bwu-datagrid-row.odd:not([style-scope]):not(.style-scope) { background: #fafafa; } Here is what…
Alex L.
  • 416
  • 1
  • 4
  • 14
1
vote
1 answer

Updating bwu_grid dataItems in realtime and deleting a selected row

I am using bwu_datagrid in my project and finding it difficult to solve two issues. How to delete a row selected via a checkbox in a grid using a context menu that shows delete with an icon and words. Updating the grid dataItems in realtime. From…
st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75
1
vote
1 answer

Setting height of bwu-datagrid to dynamic

If the height of the grid is currently not set, the grid will not be displayed. While this is great for grids with many rows, it creates an issue for me with a grid with a small number of rows, say 4. I have placed three grids in a component and…
st_clair_clarke
  • 5,453
  • 13
  • 49
  • 75
1
vote
0 answers

bwu-datagrid - Implementing Lazy Loading of Large Data Set

I am working on implementing lazy loading utilizing bwu-grid's dataview implementation in Dart. My server is implemented with Google App Engine (Java) over cloudendpoint API. When returning over 1,000+ rows, if no fetch option is set, I get an…
LuxuryMaster
  • 577
  • 1
  • 4
  • 11
1
vote
1 answer

bwu_datagrid in paper-action-dialog messes up columns 2nd time dialog is opened

I am using bwu_datagrid in my Dart/Polymer webapp. In a paper-action-dialog, I am using the "grouping" grid to show a tree-table. The first time the dialog is opened, the grid looks fine. The second time the dialog is opened, it is fine in…
gtaylor20
  • 23
  • 5
1
vote
0 answers

Delete selected rows in bwu-grid by using the delete key

I'm using the bwu-grid and want to have the delete key to delete rows. Here is the code I have right now: _grid.onKeyDown.listen((e) { print("onKeyDown ${e.keyCode}"); if(e.keyCode == 46) { var rows = _grid.getSelectedRows(); for (var…
Jonas Kello
  • 1,178
  • 2
  • 13
  • 25
1
vote
1 answer

Pub warnings while trying to run bwu_datagrid 0.0.18 and polymer+angular

I'm trying to create a simple project with the latest versions of polymer, angular, and bwu_datagrid 0.0.18. I can't get pass the pub get, I get a warning and pub never downloads bwu_datagrid. I need help getting these 3 gems to work in…
Alex L.
  • 416
  • 1
  • 4
  • 14
1
2