Comments (5)
It's working great :) Thanks @BenDol
from gwt-material-table.
Since we are loading the categories manually with the infinite scroller you need to do it like so:
CustomCategoryFactory categoryFactory = new CustomCategoryFactory();
table.setCategoryFactory(categoryFactory);
// Load the categories from the server
table.setLoadMask(true);
personService.getCategories(new AsyncCallback<List<String>>() {
@Override
public void onSuccess(List<String> categories) {
for(String category : categories) {
table.addCategory(categoryFactory.generate(category));
}
table.setLoadMask(false);
}
@Override
public void onFailure(Throwable throwable) {
GWT.log("Getting people categories async call failed.", throwable);
}
});
from gwt-material-table.
I will add addCategory(String)
to avoid this use case issue.
from gwt-material-table.
Added the use case e4598bb
Just change this now:
for(String category : categories) {
table.addCategory(category);
}
from gwt-material-table.
Thanks will try this out.
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.