6

I've been looking for the last couple of days for a decent Grid widget with proper knockout bindings; decent grid meaning to have support for filtering, grouping, paging, sorting, aggregates, templates, remote source, etc. Doesn't matter the licence free or commercial. The problem is that all that I found have no/incomplete knockout bindings.

KO support:

I am thinking to go all the distance with knockout meaning that I want to be able to control not only the grid's data source but also the behavior. For instance, one basic feature I am looking for is the ability to control paging (with ko bindings) since my data source can have hundred of thousands of records and I don't want to bring everything on the client.

Do you know any other grid widget that takes ko seriously?

Or do you think I should go for a custom solution?

alexb
  • 971
  • 6
  • 12
  • 1
    have you looked at: https://github.com/Knockout-Contrib/KoGrid examples here: http://knockout-contrib.github.io/KoGrid/#/examples – Tanner Jan 23 '14 at 11:21
  • 1
    Even though KoGrid is discontinued and incomplete its still the most complete grid there is for KO – Anders Jan 23 '14 at 11:32
  • good catch, indeed a grid widget with the most impressive ko integration I've seen so far. It could be a good starting point – alexb Jan 23 '14 at 12:02
  • @Tanner, please add your comment as answer so I can accept it – alexb Feb 03 '14 at 08:49
  • @alexb have answered with an extended version of my comment – Tanner Feb 03 '14 at 09:53

2 Answers2

5

Try TGrid - http://grid.tesseris.com. It's powerful like Telerik or DevExpress and was designed for Knockout.js

Dmitry
  • 201
  • 3
  • 5
  • the website you are referring to is empty – Daniël Tulp Jun 04 '15 at 11:58
  • Are you sure? There was a problem with domain name for several days. May be that was the reason of your comment. Now everything is working. Also you can check project page on github. – Dmitry Jun 24 '15 at 13:12
  • Tried to use the files from the sample at this link - got " JavaScript runtime error: 'itemsProvider' is undefined". There's no instruction at all regarding how to connect this stuff at pages in my ASPNET MVC project. Do you know where to place these JS files, and in which sequence? – user216652 Nov 27 '17 at 20:21
4

Take a look at KoGrid: github.com/Knockout-Contrib/KoGrid

If you want some samples of usage check here: KoGrid Examples

You just need to data-bind an observableArray to koGrid and it will take care of the rest.

HTML

<div data-bind="koGrid: { data: myObservableArray }"></div>

JS / Knockout

var vm = {
  myObservableArray: ko.observableArray(/* array of any complex obects */)
};

ko.applyBindings(vm);
Tanner
  • 22,205
  • 9
  • 65
  • 83