1. #1
    Ext User
    Join Date
    Jul 2007
    Posts
    24
    Vote Rating
    -1
    xiexueze has a little shameless behaviour in the past

      -1  

    Default [2.x] ComboBox Tree

    [2.x] ComboBox Tree


    Hi all:

    here I have two examples about the comboBox, the first with a tree, the second with a panel, exactly with what you want

    First example:
    HTML Code:
    	
           var comboxWithTree = new Ext.form.ComboBox({
    		store:new Ext.data.SimpleStore({fields:[],data:[[]]}),
    		editable:false,
    		shadow:false,
    		mode: 'local',
    		triggerAction:'all',
    		maxHeight: 200,
    		tpl: '<tpl for="."><div style="height:200px"><div id="tree1"></div></div></tpl>',
    		selectedClass:'',
    		onSelect:Ext.emptyFn
    	});
    	var tree1 = new Ext.tree.TreePanel({
    		loader: new Tree.TreeLoader({dataUrl:'get-nodes.php'}),
    		border:false,
     		root:new Ext.tree.AsyncTreeNode({text: 'treeRoot',id:'0'})
      	});
      	tree1.on('click',function(node){
      		comboxWithTree.setValue(node.text);
      		comboxWithTree.collapse();
      	});
    	comboxWithTree.on('expand',function(){
    		tree1.render('tree1');
      	});
    	comboxWithTree.render('comboxWithTree');
    second example:
    HTML Code:
    	var comboxWithPanel = new Ext.form.ComboBox({
    		store:new Ext.data.SimpleStore({fields:[],data:[[]]}),
    		editable:false,
    		mode: 'local',
    		triggerAction:'all',
    		maxHeight: 200,
    		tpl: '<div style="height:200px"><div id="panel"></div></div>',
    		selectedClass:'',
    		onSelect:Ext.emptyFn
    	});
    	comboxWithPanel.render('comboxWithPanel');
    	var tree2 = new Ext.tree.TreePanel({
    		loader: new Ext.tree.DWRTreeLoader({dwrCall:Tmplt.getTmpltTree}),
    		border:false,
    		autoScroll:true,
    		root:new Ext.tree.AsyncTreeNode({text: 'root',id:'0'})
      	});
    	var border = new Ext.Panel({
    		title:'title',
    		layout:'fit',
    		border:false,
    		height :200,
    	    tbar:[{text:'ok1'},'-',new Ext.form.TextField({id: 'bb',width:60}),{text:'search1'}],
    		bbar:[{text:'ok2'},'-',new Ext.form.TextField({id: 'aa',width:60}),{text:'search2'}],
    		items: tree2
      	});
    	comboxWithPanel.on('expand',function(){
    		border.render('panel');
      	});
    	
    Attached Files

  2. #2
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,165
    Vote Rating
    322
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Any demo? Or a screenshot at least? Otherwise I don't know if it is "exactly what I want"
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Blessing and Curse of refs, Grid MultiSearch Plugin


  3. #3
    Ext User
    Join Date
    Jul 2007
    Posts
    24
    Vote Rating
    -1
    xiexueze has a little shameless behaviour in the past

      1  

    Default


    here are the pictures of the two examples
    Attached Images

  4. #4
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,165
    Vote Rating
    322
    jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future jsakalos has a brilliant future

      0  

    Default


    Thanks for pictures. Interesting. I have no immediate use for it but it's good to know that this extension exists and that we can use it when the situation comes.

    Thank you for your work.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Blessing and Curse of refs, Grid MultiSearch Plugin


  5. #5
    Ext User
    Join Date
    Apr 2007
    Posts
    36
    Vote Rating
    0
    Pagebaker is on a distinguished road

      0  

    Default


    Nice I'll need something like this in the near future, looks like it still needs some finetuning, but nice work!

  6. #6
    Ext User
    Join Date
    Feb 2008
    Posts
    19
    Vote Rating
    0
    infinit is on a distinguished road

      0  

    Question


    Great, but how to set the params to submit ? e.g. I need to submit the selected category_id and category_name; and when loading data, the comboboxtree can be populated with the existing data?

    Appreicate for your help.

  7. #7
    Sencha User wasp's Avatar
    Join Date
    Nov 2007
    Posts
    29
    Vote Rating
    0
    wasp is on a distinguished road

      0  

    Default


    I need the same - sending the id, not the name and prefilling it with data.

    For the first - my dirty solution was hidden field, for the second - i still haven't found solution yet.

  8. #8
    Sencha User
    Join Date
    Jul 2007
    Location
    Moscow, Russia
    Posts
    295
    Vote Rating
    0
    6epcepk is on a distinguished road

      0  

    Default


    Thanks for ux!
    But how I can modify .bmp ux files?
    Thx.

  9. #9
    Sencha User galdaka's Avatar
    Join Date
    Mar 2007
    Location
    Spain
    Posts
    1,166
    Vote Rating
    -1
    galdaka is an unknown quantity at this point

      0  

    Default


    Go Advanced => Manage attachments

    But... Is posible live demo? If you don

  10. #10
    Sencha User
    Join Date
    Jul 2007
    Location
    Moscow, Russia
    Posts
    295
    Vote Rating
    0
    6epcepk is on a distinguished road

      0  

    Default


    galdaka,
    And what I must see there?
    (If your answer for me.)

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar