Success! Looks like we've fixed this one. According to our records the fix was applied for EXTJS-8279 in a recent build.
  1. #1
    Ext JS Premium Member canxss's Avatar
    Join Date
    Sep 2008
    Posts
    184
    Vote Rating
    3
    canxss is on a distinguished road

      0  

    Default Error when trying to select a record while using CellModel

    Error when trying to select a record while using CellModel


    Ext version tested:
    4.1.4.605

    Browser versions tested against:

    Chrome Version 24.0.1312.52 m
    Firefox 18.0.1
    Description:
    Inside onSelectChange method of CellModel.js, pos is undefined on line:
    view = pos.view || me.primaryView;

    Test Case:
    Using the grid\cell-editing.js under examples, add the following red lines inside store load callback:

    Code:
        store.load({
            // store loading is asynchronous, use a load listener or callback to handle results
            callback: function(){
                Ext.Msg.show({
                    title: 'Store Load Callback',
                    msg: 'store was loaded, data available for processing',
                    modal: false,
                    icon: Ext.Msg.INFO,
                    buttons: Ext.Msg.OK
                });
               var sm = grid.getSelectionModel();
               sm.select(store.getAt(0));
            },
            scope: this
        });
    Comment:
    I have two editable grids in a master-detail structure and a form as a third detail. I have to manage the data bound to them while selecting records. When a master record is selected through grid I want to select the first detail record manually in order to keep the view in tact. Although this should be easy I couldn't manage selecting a record.

    Ipek

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,073
    Vote Rating
    853
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

Thread Participants: 1