Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>I did my homework and here's my final conclusion. To begin with - there's nothing like KO support - there has to be a ko binding handler for the plugin (except fo KOGrid).</p> <p><strong>DataTables</strong> - <a href="http://datatables.net/blog/Extended_data_source_options_with_DataTables" rel="nofollow noreferrer">supports json</a> but couldn't find native KO support (<a href="http://www.joshbuckley.co.uk/2011/07/knockout-js-datatable-bindings/" rel="nofollow noreferrer">external plugin</a>). Binding looks simple and straight fwd yet many <a href="http://datatables.net/download/" rel="nofollow noreferrer">diff script</a> files.</p> <p><strong>SlickGrid</strong> - supports <a href="https://github.com/mleibman/SlickGrid/blob/master/examples/example6-ajax-loading.html" rel="nofollow noreferrer">json</a> but needs a bit post processing. Possible external <a href="https://stackoverflow.com/questions/7742821/updating-slickgrid-with-knockoutjs-via-dependentobservable">KO binding</a> feasible. Using ko.utils.unwrapObservable.</p> <p><strong><a href="https://github.com/SteveSanderson/knockout/blob/gh-pages/examples/resources/knockout.simpleGrid.1.3.js" rel="nofollow noreferrer">ko.SimpleGrid</a></strong> Implementation of binding ko.bindingHandlers.simpleGrid (supports paging) As seen in <a href="http://knockoutjs.com/examples/grid.html" rel="nofollow noreferrer">KO demo</a>.(<a href="http://jsfiddle.net/rniemeyer/QSRBR/" rel="nofollow noreferrer">source</a>) <a href="https://groups.google.com/forum/?fromgroups=#!topic/knockoutjs/rl6B2jP2-BQ" rel="nofollow noreferrer">No native support for sorting</a> but can be extended</p> <p><em>My final choice -</em> </p> <blockquote> <p><strong><a href="http://ericmbarnard.github.com/KoGrid/#/examples" rel="nofollow noreferrer">KOGrid</a></strong> Probably the first pure KO based Grid! So obviously json compatible. Supports sorting natively (no extra scripting needed). Also found server side paging for large data set. <strong>All in one</strong>!</p> </blockquote> <pre><code>function columnDefsVM() { var self = this; this.myData = ko.observableArray([{ name: "Moroni", age: 50 }, { name: "Tiancum", age: 43 }, { name: "Enos", age: 34 }]); this.gridOptions = { data: self.myData, columnDefs: [{field: 'name', displayName: 'Name'},{field: 'age', displayName: 'Age'}] }; } ko.applyBindings(new columnDefsVM()); </code></pre> <p>Some others - </p> <ul> <li><strong><a href="http://www.jsonml.org/bst/example/" rel="nofollow noreferrer">JsonML + Browser-Side Templating (JBST)</a></strong> couldn't infer too deep but it does pose an effective approach to use js for templating and runtime behavior modification!</li> <li>Simple <a href="http://paramquery.com/demos" rel="nofollow noreferrer">http://paramquery.com/demos</a></li> <li>Feature rich jqGrid <a href="http://www.trirand.net/demoaspnetmvc.aspx" rel="nofollow noreferrer">http://www.trirand.net/demoaspnetmvc.aspx</a> (<a href="https://stackoverflow.com/questions/2690657/mapping-json-data-in-jqgrid">json</a> &amp; <a href="https://github.com/CraigCav/Knockout-jqGridBinding" rel="nofollow noreferrer">KO</a>)</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload