jQuery UI Widgets Forums Navigation Tree Folder and files list

This topic contains 4 replies, has 2 voices, and was last updated by  Dimitar 10 years, 10 months ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • Folder and files list #46154

    Titanium
    Participant

    Hello,
    First, I want to thank you for this wonderful tool you have developed. Although we can do many things with JQWidget, I can not list the files and folders to an FTP or even local in jqxTree.
    Do you have an example or code that I can adapt to my needs ?
    Thank you for your help.

    Folder and files list #46173

    Dimitar
    Participant

    Hello Titanium,

    Unfortunately, the tree’s content cannot be auto-generated based on a folder structure. You would have to include the names of the files and folders in a data source and then load the tree from it.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

    Folder and files list #46191

    Titanium
    Participant

    Thank you for your reply.
    Too bad we can not do is type of manipulation, although it would jqxtree can make this list of file and / or folder to the application and with multiple columns to display different types of information (such as file size).
    Be little for next update;)

    Folder and files list #46535

    Titanium
    Participant

    Hello,

    I come back after some testing and research, i can not do what I want , but i do not even know if this is possible. So i just ask you several questions.

    To update at the request of my tree i use an adaptation of the code on this link :
    http://www.jqwidgets.com/load-tree-items-with-ajax/

    I would have wanted to include some parameters in the JSON return .
    Here is some code that may be able to clarify my request.

    http://jsfiddle.net/_titanium_/ge7CN/38/
    ( The above code does not work in the state )

    Several questions:
    1 – Is it possible to add the JSON in the “type” parameter ?
    2 – If the “type” parameter can be added , can you see the arrow to expand the node ? type = d ( directory) show arrow or type = f ( file) hide arrow
    3 – ( optional ) this is mandatory to have the label parameter : ” Loading … ” in each item ? Can we not remove and replace it with the JS code?

    If you ever understand anything , i’d be happy to explain in more detail.

    Folder and files list #46566

    Dimitar
    Participant

    Hello Titanium,

    1. Do you wish to add JSON code to the type property of the data source? If so, this can be done as with the items property. If not, please clarify your requirement;
    2. Expand/collapse arrows are shown when a tree item has sub-items. There is no API for hiding or showing them;
    3. The “Loading…” label is set in the example and can be easily modified. In the Load on Demand with Ajax demo, please check out the file ajax1.htm. There, you can change the label of the loading item.

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

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

You must be logged in to reply to this topic.