1. #1
    Ext User
    Join Date
    Oct 2009
    Posts
    15
    Vote Rating
    0
    bello is on a distinguished road

      0  

    Default GridPanel deselect

    GridPanel deselect


    Hi.

    When I click on a row in my GridPanel I pop up a Window containing a FormPanel with data. This is OK so far. When I close the Window the GridPanel row remains selected.

    I would like the row to be deselected when I close the popup Window (actually I hide the window on close).

    I have attached the following to the Window but with no success : screen just hangs : Firebug seems lost somewhere in ext-all.js :

    listeners:
    {beforehide: function(){
    Ext.getCmp("grid_name").getSelectionModel().clearSelections();
    return true;
    }},

    Any ideas on this please ?

  2. #2
    Sencha User fay's Avatar
    Join Date
    Apr 2007
    Location
    Ireland
    Posts
    1,750
    Vote Rating
    9
    fay will become famous soon enough fay will become famous soon enough

      0  

    Default


    Use ext-all-debug.js and put a breakpoint at the "...clearSelections();" line and step into the code.

  3. #3
    Ext User
    Join Date
    Oct 2009
    Posts
    15
    Vote Rating
    0
    bello is on a distinguished road

      0  

    Default


    I get a message that 'Ext.getCmp("grid_name")' is undefined : but it really is, so processing just can't find it. Suspect some kind of scope error I'll have to have a look at.

  4. #4
    Ext User
    Join Date
    Oct 2009
    Posts
    15
    Vote Rating
    0
    bello is on a distinguished road

      0  

    Default


    Not scope...it's because getCmp uses the ID and not the name. Oops.

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