0

I have this code:

grid.getSelectionModel().on('selectionchange', function(selModel, selections) {}

and inside the function with the variable 'selections' I want to get the selected row field 'name' data.
How do I do it?
I have tried 'selections.data.name' and 'selections.get('name')' but none works.
I know it's possible because Firebug shows the data of the variable 'selections'.

alexandre1985
  • 1,056
  • 3
  • 13
  • 31

1 Answers1

2

The answer is:
selections[0].data.name or selections[0].get('name')

alexandre1985
  • 1,056
  • 3
  • 13
  • 31