-
16 Aug 2011 2:14 AM #1
Grid getSelection() returns empty array
Grid getSelection() returns empty array
Hi
I have a grid with CellEditing plugin and one of the cells has a combobox. When the user selects a value from the combobox, I need to set some default values for other cells on the same row.
I'm using, but that method returns an empty array.Code:Ext.getCmp('lineItemsGrid').getSelectionModel().getSelection()
I asked same question on StackOverflow, but I don't want to do this on grid edit event, rather do it when the user selects from combobox.
http://stackoverflow.com/questions/7...-returns-empty
I created a JSFiddle file in case you want to have a look and play around.
http://jsfiddle.net/Z6b7a/8/
When you select an item from the Light dropdown, it should spit out the values to the console.
Any help is greatly appreciated.
Thanks
Oz
-
17 Aug 2011 12:35 AM #2
-
17 Aug 2011 1:48 AM #3
Fixed
Fixed
In case anyone follows this thread, I've found the solution.
Apprarently, it didn't like me to define the selection model, perhaps that was wrong, as I'm a newbie.
Updated and working JSFiddle: http://jsfiddle.net/Z6b7a/9/Code:.... selModel: { selType: 'cellmodel' }, ....
Cheers
Oz


Reply With Quote