jQuery UI Widgets Forums Getting Started jqxtree Cannot set property 'id' of undefined

This topic contains 4 replies, has 2 voices, and was last updated by  admin 6 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author

  • Kyvaldenius
    Participant

    Добрый день столкнулся с проблеммой.
    хотел в jqxtree отобразить дерево при этом выдает ошибку “Cannot set property ‘id’ of undefined”

    решил для примера взять пример с сайта

    var source = [
    { label: “Item 1”, expanded: true, items: [
    { label: “Item 1.1” },
    { label: “Item 1.2”, selected: true }
    ]
    },
    { label: “Item 2” },
    { label: “Item 3” },
    { label: “Item 4”, items: [
    { label: “Item 4.1” },
    { label: “Item 4.2” }
    ]
    },
    { label: “Item 5” },
    { label: “Item 6” },
    { label: “Item 7” }
    ];
    // Create jqxTree.
    $(‘#jqxTree’).jqxTree({ source: source, height: ‘300px’, width: ‘300px’ });

    ошибка осталась

    использую версию
    “~/Scripts/jquery-3.5.1.min.js”,
    “~/Scripts/jquery – ui – 1.12.1.min.js”

    jQWidgets_Framework 8.1.4


    Kyvaldenius
    Participant

    Good afternoon, I ran into a problem.
    I wanted to display a tree in jqxtree and it gives the error “Cannot set property ‘id’ of undefined”

    decided to take an example from the site as an example

    var source = [
    {label: “Item 1”, expanded: true, items: [
    {label: “Item 1.1”},
    {label: “Item 1.2”, selected: true}
    ]
    },
    {label: “Item 2”},
    {label: “Item 3”},
    {label: “Item 4”, items: [
    {label: “Item 4.1”},
    {label: “Item 4.2”}
    ]
    },
    {label: “Item 5”},
    {label: “Item 6”},
    {label: “Item 7”}
    ];
    // Create jqxTree.
    $ (‘# jqxTree’). jqxTree ({source: source, height: ‘300px’, width: ‘300px’});

    the error remained

    I use version
    “~ / Scripts / jquery-3.5.1.min.js”,
    “~ / Scripts / jquery – ui – 1.12.1.min.js”

    jQWidgets_Framework 8.1.4


    admin
    Keymaster

    Hi Kyvaldenius,

    You may remove jQuery. It is not necessary. The Tree should be created as shown in the samples. I would suggest you download jQWidgets from our website.

    Best regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com/


    Kyvaldenius
    Participant

    please tell me I understand correctly, you don’t need to install jquery for jqwidgets to work (in the examples, jquery is used everywhere)


    admin
    Keymaster

    Hi Kyvaldenius,

    You can try with the examples, too. Remove jQuery and it will still work.

    Best regards,
    Peter Stoev

    jQWidgets Team
    https://www.jqwidgets.com/

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.