jQWidgets Forums
Forum Replies Created
-
Author
-
Thank you for your answer, i could make this
$('#Tree').on('select',function(event) { var args = event.args; var item = $('#Tree').jqxTree('getItem', args.element); var lastitem = item; var parentitem; while(true) { parentitem = $('#Tree').jqxTree('getItem', lastitem.parentElement); if (parentitem != null) lastitem = parentitem; else break; } console.log(lastitem.value); });
It works well, it could be useful to another person.
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.
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;) -
AuthorPosts