Best options for an AngularJS Tree Grid

后端 未结 5 1133
无人共我
无人共我 2021-02-01 05:39

For a while now, I\'ve been looking for a Tree Grid that works nicely with AngularJS and haven\'t had a lot of luck.

My requirements are:

  1. Easy to use
相关标签:
5条回答
  • 2021-02-01 06:19

    I know its a two months old question, but I needed the same thing and just came across this grid Adapt-Strap.

    I used it some small examples and worked fine so far, seems really easy to use, has drag-drop/pagination/lazy loading.

    I think its worth a try, and fyi: I have no connection what so ever with the developers there.

    0 讨论(0)
  • 2021-02-01 06:19

    Angular Tree Grid seems like a nice option if you want to be able to edit nodes.

    As of version 2.7, it does not support drag & drop reordering, sadly.

    Demo: https://angular-tree-grid.stackblitz.io/add_edit_delete

    0 讨论(0)
  • 2021-02-01 06:32

    Use JS Tree

    http://ezraroi.github.io/ngJsTree/?utm_source=angular-js.in&utm_medium=website&utm_campaign=content-curation

    Lazy Load in JSTree :http://www.miketyka.com/2012/10/lazy-loading-with-jstree-and-ajax/

    0 讨论(0)
  • 2021-02-01 06:35

    My Suggestion would be Angular UI-Grid. In its current version, there are many configuration options, also for Trees:

    Website: http://ui-grid.info/

    Expandable Grid: http://ui-grid.info/docs/#/tutorial/216_expandable_grid

    0 讨论(0)
  • 2021-02-01 06:38

    IgniteUI Tree Grid (not to be confused with the ugly Hierarchical Grid)

    Whilst not perfect, this seems like a reasonable option.

    Pros

    • Looks nice enough
    • Has a few plugins for sorting, filtering, paging, pinning etc.
    • Lazy loading of children can be integrated by listening to expand events (and possibly the InfragisticsLoader)

    Cons

    • No out-of-the-box AngularJS integration
    • No "Infinite Scroll" out-of-the-box

    Its also pretty simple to use:

    $("#treegrid").igTreeGrid({
        width: "100%",
        dataSource: data,
        primaryKey: "employeeID",
        columns: [
            { headerText: "Employee ID", key: "employeeID", dataType: "number" },
            { headerText: "Name", key: "name", dataType: "string" }
        ]
    });
    

    I have created a sample jsFiddle here: http://jsfiddle.net/immersion/qggbs0s6/

    0 讨论(0)
提交回复
热议问题