Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    11
    Vote Rating
    0
    oz-on is on a distinguished road

      0  

    Default 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
    Code:
    Ext.getCmp('lineItemsGrid').getSelectionModel().getSelection()
    , but that method returns an empty array.

    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

  2. #2
    Sencha User
    Join Date
    Aug 2011
    Posts
    11
    Vote Rating
    0
    oz-on is on a distinguished road

      0  

    Default


    *bump*

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    11
    Vote Rating
    0
    oz-on is on a distinguished road

      0  

    Talking 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.

    Code:
    ....
    selModel: {     selType: 'cellmodel'
    },
    ....
    Updated and working JSFiddle: http://jsfiddle.net/Z6b7a/9/

    Cheers
    Oz