Given table binded to an array with 2 items And table is filtered with XYZ And none of the 2 items has matching info When when dataSource updated with new 3 items And filter XYZ cleared Then table should clear old data And show 3 new items Actual since code checks visible rows and due to filter there are no visible row, it will not clear table. To fix it we should check available data.
Since Datatables.js 1.9 the property "mDataProp" can be a function (see http://datatables.net/docs/DataTables/1.9.2/DataTable.defaults.columns.html#mDataProp). If a function is registered here, we need to execute it in order to get the values.
Updated readme.md to warn people that the DataTables binding doesn't currently work with v1.9.1+ of DataTables.
…x/radio button list controls surrounding binding to a nulled observable.
…se refresh from viewmodel for some cases
…his is useful for dataTables < v1.9.
… retrieve an instance of the dataTables API from a bound table. Updated the demo to include an example of an table refresh button on Sample 3. Also tidied up the dataTables binding a bit.
Added support for computed template names
…ck function (for ajax datasources) to the current viewModel.
…reateChildContext as recommended in issue knockout/knockout#501 (comment)
…or the datatable and of it's rows. Also updated knockout dependency to v 2.1.0.
…ide of the rows of the table body (like in the header or footer of the table).
…e is capable of binding to a unflattened data source, as per santiagorp suggestion.
…aTables binding where binding to a cell would break after the first update when jquery templating wasn't being used (or more specifically, when template rewriting is disabled). Fixed issue where a call to ApplyBindings would rebind elements printed by the row template of the DataTables binding.
… with symbolic links.
…enamed datatables binding.