1. #1
    Sencha User
    Join Date
    May 2013
    Posts
    24
    Vote Rating
    0
    Roomy is on a distinguished road

      0  

    Default Unanswered: How to get the ROW from gridpanel?

    Unanswered: How to get the ROW from gridpanel?


    Below line is not working to select row from gridPanel.

    var rowToHighlight=Ext.get(grid.view.getRow(rowIndex));

  2. #2
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,084
    Answers
    112
    Vote Rating
    95
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    what exactly do you want to do? The selection model might help you:

    http://docs.sencha.com/extjs/4.2.0/#...election.Model

    E.g. if you want to get the selected row(s):

    Code:
    var sRows = grid.getSelectionModel().getSelection();
    or if you want to set the selection programmatically:
    Code:
    var index = 0;
    grid.getSelectionModel().select(index);  // select record by index
    
    var record = grid.getStore().first();
    grid.getSelectionModel().select(record);  // select record

  3. #3
    Sencha User
    Join Date
    May 2013
    Posts
    24
    Vote Rating
    0
    Roomy is on a distinguished road

      0  

    Default Undefined result.

    Undefined result.


    I use both the code line but result is UnDefined.

  4. #4
    Touch Premium Member
    Join Date
    Jun 2011
    Posts
    1,084
    Answers
    112
    Vote Rating
    95
    Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light Farish is a glorious beacon of light

      0  

    Default


    what is undefined? do you have the grid visible in this scope? if you are using an id in your grid, then you can try Ext.getCmp('gridID').getSelectionModel()....

Thread Participants: 1

Tags for this Thread

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