1

This is what I got: enter image description here

While menu button is a bit taller than normal, header is chopped into half.

HTML:

<style type="text/css">
        .TreeCCS {width: 900px; height: 250px;}
    </style>
<div ng-controller="ctrlMyTree">
            <br />ANGULAR
            <div id="afad" ui-grid="grdMyTree" ui-grid-tree-view class="TreeCCS">
            </div>
        </div>

.js:

var aIS = angular.module("app", ["ui.grid", "ui.grid.treeView"]);
aIS.controller("ctrlMyTree", function ($scope, $http)
{
    $scope.grdMyTree= { enableGridMenu: true, showTreeExpandNoChildren: true, enableTreeView: true, };

Node and leaf levels are not defined yet, following this official tutorial but using dynamic json to load data. Works if Take out all tree-related.

ui.grid.js = 3.2.9. What am I missing here?

1
  • Plunker Commented Feb 17, 2017 at 19:28

1 Answer 1

0

The key is showTreeExpandNoChildren, should be false rather than true(default). Although not documented,

showTreeExpandNoChildren: defaults to true. Shows the + sign even if there are no children, allows you to dynamically load children. If set to false there'll be no + if there are no children.

Here,

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.