View Full Version : CellSelectionModel bug on IE7 when a key pressed

7 Mar 2007, 5:26 AM
I am using a grid with CellSelectionModel and listening celldblclick events of the grid. In IE7, while there are no cells selected, whenever I press any key (like Ctrl or Shift or any other key from keyboard) I get the following error:

'cell' is null or not an object

which points to this line:

var k = e.getKey(), r = s.cell[0], c = s.cell[1];

on ext-all-debug.js. This does not happen while there is a cell selected.

I am using alpha 2 revision 6.

7 Mar 2007, 6:08 AM
I have also noticed that the problem is not related with celldblclick beacuse it still exists without that handler. It can be tested just replacing RowSelectionModel to CellSelectionModel in the paging grid example.

8 Mar 2007, 6:54 AM
Can you verify if this is still a problem with the latest release.

8 Mar 2007, 11:02 AM
Can you verify if this is still a problem with the latest release.
Yes, it is still there.

To reproduce the behaviour:
1- Go to the paging.js of paging grid example
2- Go to line 84 which is:

selModel: new Ext.grid.RowSelectionModel({singleSelect:true}),
3- Change it to:

selModel: new Ext.grid.CellSelectionModel({singleSelect:true}),
4- Open the paging.html in IE6/7
5- Do NOT select any cell and set the focus to grid (for ex. you can click the scrollbar to the left or click the paging controls below to set the focus)
6- Press any key from your keyboard and the error shows up.

This does not hapen while any cell is selected.

19 Apr 2007, 1:04 PM
As far as I can see this had been fixed :) Thanx!