alfajango / jquery-dynatable

A more-fun, semantic, alternative to datatables
http://www.dynatable.com
Other
2.77k stars 363 forks source link

Issue showing records #227

Closed martin-sweeny closed 8 years ago

martin-sweeny commented 8 years ago

I have a dataset that I want to load, but is not appearing.

It is a JSON file with nearly 500 records. I'm wrapping it in a $.get() call, which fetches the data fine. Upon success, I want to pass it to dynatable:

$.get('assets/data.json').success(function (response) {
    __self.records = response;
    __self.$container.dynatable({
        records: { dataset : __self.records }
    });
});

Problem is that it then shows me 0 records. Any ideas how I can debug or resolve this?

martin-sweeny commented 8 years ago

Wow I wasn't paying attention at all. It's dataset: { records: __self.records } ... Closing shamefully..