13 Sep 2006 11:29 AM #1
How to get the data of a selected Row?
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)
13 Sep 2006 12:18 PM #2
.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.
By Choleriker in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 23 May 2007, 9:29 AM
By KRavEN in forum Ext 1.x: Help & DiscussionReplies: 2Last Post: 15 Mar 2007, 4:33 AM
By burgleboy711 in forum Ext 1.x: Help & DiscussionReplies: 1Last Post: 28 Dec 2006, 3:48 AM
By ericwaldheim in forum Ext 1.x: Help & DiscussionReplies: 3Last Post: 9 Oct 2006, 10:58 AM