AuthorFolder and files list Posts
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.
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.
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;)
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 :
I would have wanted to include some parameters in the JSON return .
Here is some code that may be able to clarify my request.
( The above code does not work in the state )
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.
- 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.
You must be logged in to reply to this topic.