Hybrid View

  1. #1
    Ext User
    Join Date
    May 2007
    Posts
    14
    Vote Rating
    0
    spothineni is on a distinguished road

      0  

    Default Extjs Grid cell click for popup window

    Extjs Grid cell click for popup window


    Hi All,

    I have got requirement like i have loaded my Ext grid with data. When i click on the perticular cell i should open window.showmodeldialog with that cell data to the popup and i can change that record data and i should refresh the parent grid for the updated data once i saved the popup data.

    How to write the event to select the cell or column similar to
    grid.on('click', this.gridSelectionHandler, this);

    I will appriciate your early response as i need to finish this task early for the tommorow release.


    Thanks,
    Srikanth

  2. #2
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    There are examples of this in the forum. You'll have to search. Also, please stop asking for quick responses - nobody here is obligated to help you meet your deadlines. The community will help when they have time and answers.

  3. #3
    Sencha User
    Join Date
    Oct 2007
    Posts
    221
    Vote Rating
    0
    ByteLess is on a distinguished road

      0  

    Default


    did you ever find out the solution?

  4. #4

  5. #5
    Ext User
    Join Date
    Dec 2009
    Posts
    1
    Vote Rating
    0
    dantepat is on a distinguished road

      0  

    Default sample on

    sample on


    here sample

    Code:
    grid.on({
    'click' : {
    fn: this.prueba,
    scope: this											
    													  }
    											});

  6. #6
    Sencha User
    Join Date
    Dec 2011
    Location
    Bangalore, India
    Posts
    17
    Vote Rating
    0
    sachindev is on a distinguished road

      0  

    Thumbs up Solution:

    Solution:


    It is simple:
    1. Create a action column, specify handler function on that, ensure that handler has all the parameters including event parameter. It would be 5th parameter in order. i.e. function(a,b,c,d,event)
    2. Use event methods getXY, getX and getY
    3. Create a global popup variable. Define it before the class defination.
    i.e.
    var popup;
    Ext.define().....
    4. Then create popup component  
    eg:- popup = Ext.create(Ext.Component.....)
    4. popup.setPosition(event.getX(),event.getY()) and popup.show()

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