Comments (4)
Make sure that the table is attached (by adding in parent container, for example) before calling table.addColumn.
from gwt-material-table.
I use the following uibuider code:
<ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder'
xmlns:g='urn:import:com.google.gwt.user.client.ui' xmlns:m="urn:import:gwt.material.design.client.ui"
xmlns:combobox="urn:import:gwt.material.design.addins.client.combobox"
xmlns:w="urn:import:com.xunox.sewicowebapp.client.widgets"
xmlns:m.table='urn:import:gwt.material.design.client.ui.table'>
<m:MaterialContainer ui:field="content">
<m:MaterialRow>
<m:MaterialColumn grid="s12 m6 l4">
<combobox:MaterialComboBox ui:field="cbLocation" />
</m:MaterialColumn>
<m:MaterialColumn grid="s12 m6 l4">
<combobox:MaterialComboBox ui:field="cbSensorType" />
</m:MaterialColumn>
</m:MaterialRow>
<m:MaterialRow ui:field="rowTable" />
<g:HTMLPanel>
<m.table:MaterialDataTable ui:field="table"
shadow="1"
height="calc(100vh - 131px)"
useStickyHeader="true"
useCategories="false"
useRowExpansion="true"
selectionType="SINGLE"/>
</g:HTMLPanel>
</m:MaterialContainer>
</ui:UiBinder>
and in java code bind the table with
@UiField
MaterialDataTable<Person> table;
command.
After run the web app the table main header show correctly, but get an error see earlier and the generated data (the same as demo) are not shown.
from gwt-material-table.
I think you have to move table initialization code (table.addColumn and so on) in overrided onLoad method of the DashboardTableView.
from gwt-material-table.
I use mvp4gwt framework, and when I change the table initialization from view to presenter after call the:
view.asWidget()
method the table fill the data correctly. So you right, thank your help!
from gwt-material-table.
Related Issues (20)
- Column.delegate setter should return "this"
- scrollTo (End/Start/Row/Value) missing HOT 1
- DataTable -Add Display Type - DEFAULT and Responsive HOT 1
- DataTable - RowLongPressHandler isnt triggered on mobile device. HOT 1
- setDensity() Compact not showing Table compact view
- Allow multiple rows in a table to be merged for some columns.
- Combobox selected items overflowing to the next row.
- Support Select All/Deselect All on a combobox.
- Frozen Columns & Paged Datatable HOT 1
- Accessibility Enhancements : Support Focusable Rows and other table components. HOT 4
- MaterialDataTable(scaffolding) is using default HOT 1
- ((intermediate value) (intermediate value), $wnd).$.$scrollBarWidth is not a function HOT 1
- Striped style not applied HOT 1
- BaseRenderer#drawRow does not consider column offset HOT 1
- Updating table layout / columns breaks column toggling HOT 3
- Sticky components (Header & Footer & Category) performance issue on firefox due to rendering calculation.
- MaterialDataTable does not sort correctly
- 2.5 -> 2.6 Error when adding the first column to the HOT 3
- Alignment of column headers not working
- Mouse Wheel scroll in a GMD-Table with StickyHeader on Chrome doesn't work properly
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 gwt-material-table.