7

I'd like to create a tree structure from JSON, but with multiple columns that can be sorted. I've seen lots of implementations of trees and grids but never one mixed.

Does anyone know of a plugin or feature for any Javascript toolkit that can make this happen so I don't have to re-invent the wheel here?

bluish
  • 26,356
  • 27
  • 122
  • 180
Eric Wendelin
  • 43,147
  • 9
  • 68
  • 92
  • Hey Eric- Can you please explain this a bit further? It sounds like you're describing new, but then you're asking for something that exists.. I'm not sure I understand exactly you are trying to build. – keparo Oct 10 '08 at 23:19
  • Is it that you have an array of similar in nature JSON object and you want to sort that array of object by one or more key? If so I got what you need :P – matdumsa Oct 10 '08 at 23:25
  • Take a look at http://www.htmltreegrid.com/ – flexicious.com May 22 '13 at 12:34

7 Answers7

8

This seems pretty nice: http://www.max-bazhenov.com/dev/ux.maximgb.treegrid/index.html

Uses ExtJS, which has some licensing limitations you have to consider.

eyelidlessness
  • 62,413
  • 11
  • 90
  • 94
5

I found all these components:

* seems not sortable

Personally I'm trying Treetable and, after some configurations (rummaging in the examples in the source of the documentation page...), I'm enjoying its simplicity and clarity.

bluish
  • 26,356
  • 27
  • 122
  • 180
3

After a long research for a treegrid, the best one that I came across is from jeasyui.com

http://www.jeasyui.com/demo/main/index.php?plugin=TreeGrid

enter image description here

czlatea
  • 1,131
  • 13
  • 20
2

The jstree plugin for jQuery tied with its plugin of jstree-grid can handle sorting (sorting is a plugin to the main jstree) that is quite flexible (and re-uses the jQuery UI theme you apply).

Is that the sort of grid you're looking for? You end up with a view very much like: jstree-grid-with-sort-themerolled

The sorting by column you'll have to manually add and then trigger a re-sort.

jeffreypriebe
  • 2,267
  • 25
  • 30
0

DHTMLX also has the TreeGrid JavaScript component (supports sorting and other grid-related features): http://dhtmlx.com/docs/products/dhtmlxTreeGrid/

(disclaimer: I work for DHTMLX)

Paul
  • 1,656
  • 11
  • 16
0

Yet another treegrid with support for bootstrap. http://maxazan.github.io/jquery-treegrid/examples/example-bootstrap-3.html

czlatea
  • 1,131
  • 13
  • 20
0

Here is an "official" example as well (top grid on the page), using the RowExpander UX.

http://extjs.com/deploy/dev/examples/grid/grid3.html

Jason
  • 1,163
  • 7
  • 10
  • 1
    @Chau @Jason I think this is the new link: http://dev.sencha.com/playpen/ext-2.0/examples/grid/grid3.html – bluish Jan 14 '11 at 10:33