PDA

View Full Version : [UNKNOWN][3.1] deselectRow -- this.grid is undefined



galdaka
29 Dec 2009, 3:50 AM
Hi,

This code works perfect in 3.0.3 and not in 3.1.0. (All browsers).



var gp = Ext.getCmp('myGrid');
gp.selModel.deselectRow(gp.getStore().indexOf(gp.selModel.getSelected()));


Problem?

Line 43486 in ext-all-debug.js. Function deselectRow, code line:



...
var r = this.grid.store.getAt(index);
...


this.grid is undefined

Greetings,

galdaka
29 Dec 2009, 7:55 AM
I added image. The problem is in all browers.

http://www.jadacosta.es/contents/screencast/gridproblem.JPG[/URL]
[URL="http://www.jadacosta.es/contents/screencast/gridproblem.JPG"] (http://www.jadacosta.es/contents/screencast/gridproblem.JPG)