jQWidgets Forums

jQuery UI Widgets Forums General Discussions Navigation Tree jqxtree load on demand issue

Tagged: 

This topic contains 3 replies, has 1 voice, and was last updated by  kamran 12 years, 2 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • jqxtree load on demand issue #22567

    kamran
    Member

    Hello,

    When I initially downloaded the latest version of the jqxTree and tested the load on demand demo, what happened was when expanding a parent node, instead of seeing the actual children (sub nodes), I could only see the word ‘item’! I thought maybe something must be wrong with their example, now that I have implemented it on my platform, the nodes (parents) are successfully rendered but I am experiencing the same issue with the sub nodes!! instead of seeing my sub nodes, I only see the word ‘item’.

    Can anyone please help me out?

    jqxtree load on demand issue #22569

    kamran
    Member

    I changed the second block to the following:

    if (loader) {
    var url1 = loaderItem.value;

    var items = jQuery.parseJSON(
    jQuery.ajax({
    url: url1,
    async: false,
    dataType: ‘json’
    }).responseText
    );

    tree.jqxTree(‘addTo’, items, $element[0]);
    tree.jqxTree(‘removeItem’, loaderItem.element);

    }

    Now I am able to get the sub nodes but in a very messy format. something like the following:

    >Parent1
    Loading…
    child1
    -Loading

    >Parent2
    Loading…
    child2
    -Loading

    .
    .
    .

    jqxtree load on demand issue #22570

    kamran
    Member

    with the following error when I click to expand a parent:

    Error: TypeError: o is undefined
    Source file: ../js/jqwidgets/jqwidgets/jqx-all.js
    Line: 7

    jqxtree load on demand issue #22573

    kamran
    Member

    Just to update, I had to update my libraries. and its fine now. thanks.

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

You must be logged in to reply to this topic.