1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    6
    Vote Rating
    0
    next2you is on a distinguished road

      0  

    Default How to get the data of a selected Row?

    How to get the data of a selected Row?


    Hi,

    I like to get the data from a selected row to update it. From the grid (or the default selection model) I can get the HTML element (the selected row) or the rowId, but how do I get the index for the setValueAt(x,y, newValue) method of the DefaultDataModel?

    I like to implement a change, when the user presses a key, e.g. for rating a row entry (1-5).

    Very cool stuff (I'm using 0.31)

    Thanks

    Christian

  2. #2
    Sencha User jack.slocum's Avatar
    Join Date
    Mar 2007
    Location
    Tampa, FL
    Posts
    6,955
    Vote Rating
    17
    jack.slocum will become famous soon enough jack.slocum will become famous soon enough

      0  

    Default


    .31 I manually put a rowIndex property on every row. So getSelectedRow().rowIndex will give you the row index.

    I decided since that locked me into that property forever it wasn't really a good idea and added grid.getSelectedRowIndex() and grid.getSelectedRowIndexes() to the version coming shortly.

    Jack

Similar Threads

  1. ComboBox - only selected values
    By Choleriker in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 23 May 2007, 9:29 AM
  2. Getting selected value from select box
    By KRavEN in forum Ext 1.x: Help & Discussion
    Replies: 2
    Last Post: 15 Mar 2007, 4:33 AM
  3. How can I convert a selected row data to a javascript object
    By burgleboy711 in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 28 Dec 2006, 3:48 AM
  4. getting selected rows in a grid
    By ericwaldheim in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 9 Oct 2006, 10:58 AM

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