Skip to content

TreeView not working #90

@dradovic

Description

@dradovic

I've tried to use the TreeView component of the aurelia-syncfusion-bridge component (11.0.3) but I get the following warning on the console:

Possible Unhandled Promise Rejection: TypeError: jQuery(...)[this.controlName] is not a function
at ejTreeView.createWidget (widget-base.js?9120:60)
at ejTreeView.attached (widget-base.js?9120:151)
at ejTreeView.descriptor.value [as attached] (decorators.js?6f1d:87)
at Controller.attached (aurelia-templating.js?8628:3759)
at View.attached (aurelia-templating.js?8628:1772)
at ViewSlot.attached (aurelia-templating.js?8628:2130)
at View.attached (aurelia-templating.js?8628:1777)
at Controller.attached (aurelia-templating.js?8628:3763)
at View.attached (aurelia-templating.js?8628:1772)
at ViewSlot.attached (aurelia-templating.js?8628:2130)

And the tree view does not collapse or expand when clicking on the items.

This is how I tried to use it:

            <ul id="treeView" ej-tree-view="e-width:250">
                <li class="expanded">
                    Artwork
                    <ul>
                        <li>
                            Abstract
                            <ul>
                                <li>2 Acrylic Mediums</li>
                                <li>Creative Acrylic</li>
                                <li>Modern Painting</li>
                                <li>Canvas Art</li>
                                <li>Black white</li>
                            </ul>
                        </li>
                        <li>
                            Children
                            <ul>
                                <li>Preschool Crafts</li>
                                <li>School-age Crafts</li>
                                <li>Fabulous Toddler</li>
                            </ul>
                        </li>
                        <li>
                            Comic / Cartoon
                            <ul>
                                <li>Batman</li>
                                <li>Adventures of Superman</li>
                                <li>Super boy</li>
                            </ul>
                        </li>
                    </ul>
                </li>
            </ul>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions