jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Ajax loading Ajax loading #4905

    pmelande
    Member

    Yeah, that would be more like the behavior you would see when using ajax to fetch the records.

    http://jsfiddle.net/QLaxB/10/

    Nice! Guess you could replace the “Loading…” with a nice animated GIF to get a more lively experience.

    in reply to: Ajax loading Ajax loading #4902

    pmelande
    Member

    Here’s the jsFiddle: http://jsfiddle.net/wBCwm/

    in reply to: Ajax loading Ajax loading #4898

    pmelande
    Member

    It is possible to create a load on demand behavior by simply binding the expand event and tell the handler to load and append the sub nodes for the current.

    In this example I add a sub-node to each node with children with a unique Id starting with “itemLoader”. On the expand event I look for the itemLoader nodes, if one is found I do an ajax call for the sub nodes, add them to the current element, and finally remove the item loader.

    Tried to post a code example here but wont work for me. Reply to this post if you like the sample code.

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