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.
-
AuthorFolder and files list Posts
-
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.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,
DimitarjQWidgets team
http://www.jqwidgets.com/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;)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.
Hello Titanium,
- 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;
- Expand/collapse arrows are shown when a tree item has sub-items. There is no API for hiding or showing them;
- 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,
DimitarjQWidgets team
http://www.jqwidgets.com/ -
AuthorPosts
You must be logged in to reply to this topic.