jQWidgets Forums

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Get root value Get root value #48925

    Titanium
    Participant

    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.

    in reply to: Folder and files list 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.

    in reply to: Folder and files list 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;)

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