PDA

View Full Version : [FIXED] Error when trying to select a record while using CellModel



canxss
22 Jan 2013, 2:16 AM
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:


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

mitchellsimoens
22 Jan 2013, 7:23 AM
Thanks for the report! I have opened a bug in our bug tracker.