-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto Generate Columns - not working #78
Comments
You need to use To be honest I should probably just be checking for truthyness but try |
Thanks Charles for the quick response, but that did not do the trick. No I have made a bindable property as well passing in boolean value, no luck. What else can I check for? Thanks On Wed, May 18, 2016 at 5:44 PM, Charles Pockert [email protected]
|
Er, I just checked the source and I never implemented this feature! Oops! Shouldn't be too hard to add ... just need to inspect the datasource when it is bound provided and generate a column for each property If you need a more functional alternative to this grid (since it's just mostly a tech demo) there are a couple of other projects that you might want to look at An improved version of this exists at http://github.com/corneliutusnea/aurelia-grid |
Ahh ok, not a problem. It is a nice feature to have which I do require. Thanks for the reference to another possible solution, will have to look to Looking forward to your update on this issue. Thanks Er, I just checked the source and I never implemented this feature! Oops! Shouldn't be too hard to add ... just need to inspect the datasource when If you need a more functional alternative to this grid (since it's just An improved version of this exists at — |
Hi Charles
I need to be able to generate the grid's columns from my data source (dynamic properties) but I cannot get the auto-generate-columns to work
auto-generate-columns="true
.My simple grid looks like this:
<grid id="my-datagrid" read.call="getContacts($event)" auto-generate-columns="true"> <grid-row class="datagrid-row"> </grid-row> </grid>
The returned data:
getContacts(gridOptions) { return new Promise((resolve, reject) => resolve({ data: [ { "id": 1, "name": "my name", "email": "[email protected]" }, { "id": 2, "name": "my second name", "email": "[email protected]" }, ], count: 2 }));
If I manually add a column in the grid that row and column loads with data, but how to get the rest of the columns to autogenerate?
Thank you
The text was updated successfully, but these errors were encountered: