1. #161
    Sencha - Community Support Team jsakalos's Avatar
    Join Date
    Apr 2007
    Location
    Slovakia
    Posts
    27,520
    Vote Rating
    376
    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


    This is too specific for your app I know nothing about so I cannot say anything helpful. Anyway, I've written an article on events.
    Jozef Sakalos, aka Saki

    Education, extensions and services for developers at new http://extjs.eu
    News: Grid Search Plugin, ExtJS 5 Complex Data Binding using MVVM


  2. #162
    Sencha User
    Join Date
    Feb 2008
    Location
    Turin, Italy
    Posts
    13
    Vote Rating
    0
    c.barca is on a distinguished road

      0  

    Default


    Ext.ux.tree.RemoteTree remove items from ContextMenu


    Hi,

    for my app I need deny some operations from ContextMenu on Ext.ux.tree.RemoteTree.
    I don't modify the extension because all operations are permitted on other part on my web app.

    Can I remove some items from ContextMenu by external Config ?

    I tried using the missing parameters 'actions' but don't run
    In effect on doc there is
    /**
    * @cfg {Object} actions Public interface to methods of tree operations. Actions are created internally
    * and then are available for user space program. Actions provided from outside at instatiation time
    * are honored.
    */

    how to ?

    Thank's all

    Claudio Barca

  3. #163
    Ext JS Premium Member
    Join Date
    Aug 2009
    Posts
    14
    Vote Rating
    0
    rmichelli is on a distinguished road

      0  

    Default


    Hello all,
    Wonderful plugin - one of my favorites.
    We're porting an application from 2.3 to 3.3.3 and finally got around to implementing an external menu config for this plugin. This mod creates an optional menuItemCfg which allows one to externally set specific actions to include in the menu. See the comment code block for how to use. This code was developed for and tested with 3.3.3 but should be compatible with 2.3 (change Ext.isString(item) to typeof item == 'string').

    Example - menuItemCfg: ['renameNode', '-', 'insertChild', '-', 'removeNode']
    menu.png

    Mods required are:

    Comments:
    Code:
    /**
    * @cfg {Array} menuItemCfg (optional) Config which will be used as the 'items' config for the context menu. May contain
    * standard menu items or strings of action names. Action names will be replaced with the specified action.
    * Note: The standard node text display item will always the first in the menu
    * Example: menuItemCfg: ['renameNode', '-', 'insertChild', '-', 'removeNode']
    */
    In initComponent, change:
    Code:
    var config = {};
    to:
    Code:
    var config = {}, menuItemCfg = this.initialConfig.menuItemCfg; delete this.initialConfig.menuItemCfg;
    Also in initComponent, directly under the 'create context menu' comment, replace the if statement with:
    Code:
    if(true === this.editable && true === this.contextMenu) {
        if(menuItemCfg) {
            Ext.each(menuItemCfg, function(item, index) {
                if(Ext.isString(item) && this.actions[item]) {
                    menuItemCfg[index] = this.actions[item];
                }
            }, this);
        }
        else {
            menuItemCfg = [
                 this.actions.reloadTree
                ,this.actions.expandAll
                ,this.actions.collapseAll
                ,'-'
                ,this.actions.expandNode
                ,this.actions.collapseNode
                ,'-'
                ,this.actions.renameNode
                ,'-'
                ,this.actions.appendChild
                ,this.actions.insertChild
                ,'-'
                ,this.actions.removeNode
            ];
        }
        menuItemCfg.unshift(new Ext.menu.TextItem({text:'Item', style:'font-weight:bold;margin:0px 4px 0px 27px;line-height:18px'}), '-');
        this.contextMenu = new Ext.menu.Menu({ items: menuItemCfg });
    }
    Note: the TextItem originally had an empty string, but this was observed to cause menu height issues with Extjs 3.3.3 in Firefox. Including a non-empty string ('Item') fixes this, and the string will never be observed as it is replaced with the node's text on show.
    Attached Images
    Last edited by rmichelli; 12 Jun 2011 at 6:19 PM. Reason: Extjs 2 compatability

  4. #164
    Sencha User tdikarim's Avatar
    Join Date
    Jun 2007
    Location
    Belgium - Brussel
    Posts
    142
    Vote Rating
    0
    tdikarim is an unknown quantity at this point

      0  

    Default No callback in the server side

    No callback in the server side


    Hi all,

    I try to use this plugins, but I have no result displayed.
    When I analyze on the server side, I receive no Callback parameter in the $_GET (php)

    here is my code
    Code:
    var treePanelWest_ListeTable = new Ext.ux.tree.RemoteTreePanel({
    	 id:'ListeTabletreePanelWest-id'
    	,autoScroll:true
    	,frame: false
    	,rootVisible:true
    	,renderTo: document.body
    	,useArrows: true
    	,containerScroll: true
      ,animate:true
      ,enableDD:false
      ,lines: true
      ,singleExpand:false
      ,layout: 'fit'
    	
    	,root:{
    		 nodeType:'async'
    		,id:'ListeTabletreePanelWest-source'
    		,text:'Root'
    		,expanded:true
    		,uiProvider:false
    	}
    
    	,loader: {
    		 url:scriptUrl+'listeTable.php'
    		,preloadChildren:true
    		,requestMethod:'GET' 
    		,baseParams:{
    			 cmd:'getListeTable'
    			,treeTable:'tree'
    			,treeID:1
    		}
    	}
    	,onRender: function(ct, pos) {
    			Ext.tree.TreePanel.prototype.onRender.call(this, ct, pos);
    	}
    });
    I use Extjs 3.3.1

    Thanks for help me
    Tamditi Karim

  5. #165
    Ext JS Premium Member
    Join Date
    Jul 2010
    Posts
    12
    Vote Rating
    0
    ericsmith66 is on a distinguished road

      0  

    Exclamation [BUG] in init this.state

    [BUG] in init this.state


    Hi,

    We just discovered a bug in init method in RemoteTreePanel.js.
    Line 11 reads
    Code:
    this.state = this.provider.get(this.stateName, {});
    It needs to clone state, so it does not modify the state object of state provider. Bug comes out when using HttpStateProvider.

    We fixed it by changing it to:
    Code:
    this.state = Ext.ux.util.clone(this.provider.get(this.stateName, {}));
    Note: Ext.ux.util clone() helper function is required in order this to work.

    Thanks

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi