PDA

View Full Version : SOLVED :: Newbie Question :: How to get the rowIndex ?



BluePhoenixNC
20 Jul 2009, 7:39 PM
Hi guys,
first my apologies if this question has been asked.
After reading through the Forum I found that I can get the selected row, but it returns an 'object'.
Now I am trying to get the RowIndex to actually be able to use the data.
Here is what I have so far:

function onDelete() {
var index= grid.getSelectionModel().getSelected();
}Not much I know, but I am stuck I do not know how to get the RecordIndex or any usable data out of the returned value.
Please keep in mind, I am very new to Extjs and Javascript, so please try to dumb it down so I can understand it, too.

Thanks a bunch

=========================
Found the solution after some serious googeling...... THANKS all