Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

ExpandAll with lazyLoad not working #104

@pszNicx

Description

@pszNicx

Hi,

I'm having an issue when I try to expand my entire tree using expandAll when I have lazy loaded branches. I'm working around this by explicitly expanding each node but it seems the issue is happening here:

bootstrap-treeview.js line 1585:

$.each(nodes, $.proxy(function (index, node) {
			this._setExpanded(node, (level > 0) ? true : false, options);
			if (node.nodes) {
				this._expandLevels(node.nodes, level-1, options);
			}
		}, this));

When lazyLoad is set to true on a node, the node does not show as having any nodes property when it gets to the if statement. This skips the call to expand any such branch.

-- Nick

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions