1. #1
    Ext User
    Join Date
    May 2008
    Location
    Maastricht
    Posts
    38
    Vote Rating
    0
    zen is on a distinguished road

      0  

    Default customizing the StatusProxy for Grid Rows DD

    customizing the StatusProxy for Grid Rows DD


    I am trying to have a customized proxy for the rows of a grid with dd enabled. I've managed to alter the size of the proxy by adding a div with a custom css class in the ddText. However, I'd also like to remove, customize, or maybe even extend the functionality of, the dropAllowed indicator.

    So far I found that the StatusProxy is being used by GridDD and becomes available after render as the dragZone property of the GridView. However it doesn't seem to have much functionality for modifying it, and I would really like a way to extend it if possible.

    any advice on this ?

    thx

  2. #2
    Ext User
    Join Date
    May 2008
    Location
    Maastricht
    Posts
    38
    Vote Rating
    0
    zen is on a distinguished road

      0  

    Default


    Hello,

    this is my second post on the subject but i figured i've had the wrong aproach in the old one since nobody seems to know.

    what i need to do is customize the DD Proxy of grid rows. However I need features beyond ddText which is the only relevant functionality I found so far in the grid.

    what is the correct way of implementing customized dd proxies for grid rows?

  3. #3
    Ext User
    Join Date
    May 2008
    Location
    Maastricht
    Posts
    38
    Vote Rating
    0
    zen is on a distinguished road

      0  

    Default


    Code:
    render: function (grid) {
                grid.getView().dragZone.getProxy().getEl().dom.innerHTML = '<p>...</p>'
    
            }
    So far this seems to allow me to change the look of the proxy. In terms of dynamic content from the dragged row, I still don't know how to do that and i'm now investigating a way to intercept the on start drag event somehow which should be hidden somewhere in the GridPanel, since I do not see such an event in the API.

    Animal if you read this i'd love to get your input, as your name seems to be mentioned most of the time the question comes up.

  4. #4
    Ext User
    Join Date
    Feb 2008
    Posts
    200
    Vote Rating
    2
    tomcheng76 is on a distinguished road

      0  

    Default


    i don't know does it help or not.
    I use this function to change the ddText of my GridPanel
    Code:
    Test.MyGrid = function(config) {
            config = config || {};
            //call parent constructor
            Test.MyGrid.superclass.constructor.call(this, config);
            //do something u need here
    }; //end of constructor
    Ext.extend(Test.MyGrid, Ext.grid.GridPanel, {
            getDragDropText : function(){
                    var r = this.selModel.getSelected();
                    var count = this.selModel.getCount();
                    if (r){
                            return r.get('name') || String.format(this.ddText, count, count == 1 ? '' : 's');
                    } else {
                            return String.format(this.ddText, count, count == 1 ? '' : 's');
                    }
            }
    });
    By changing the return of getDragDropText, you can change the look of the proxy via your customized innerHTML.

  5. #5
    Ext User
    Join Date
    May 2008
    Location
    Maastricht
    Posts
    38
    Vote Rating
    0
    zen is on a distinguished road

      0  

    Default


    doesn't that only change the contents of the proxy ? leaving the status circle in . i know that's what ddText does . I need to customize this to get rid of the status circle, move the graphical proxy with it's center underneath the mouse pointer, and show the row data inside it .

Thread Participants: 1

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