PDA

View Full Version : SelectionModel events to provide Records



kalebwalton
22 Mar 2007, 9:32 AM
The various SelectionModels contain events like 'rowselect' and 'selectionchange'.

It would be great if they would pass back the actual Records instead of just the row/column indices.

KimH
23 Mar 2007, 2:06 AM
Try

var record = grid.getSelectionModel().getSelected();

kalebwalton
23 Mar 2007, 4:18 AM
Thank you. I do realize how to get the Record if I need it, however, it would be more convenient if the records were passed along in the event. Maybe it breaks the model Jack is striving for but it would definitely be more convenient for most of my cases.