PDA

View Full Version : 'events' is Null or not an objet



same66
16 Dec 2010, 2:21 AM
Hi,

i have a problem with my datagrid.
When i add a listener in my grid, an error is occured.
The probleme is only in IE and i don't understand why my application bug.

My code :



myGrid.events['celldblclick'].clearListeners();
myGrid.addListener('celldblclick',function (grid, row, col ) {
if(col == 1){
alert('Hello ExtJs !');
}
},this);


In my code, i want clear the listener 'celldblclick' who is defined in the parent (myGrid extend a grid parent with multiple listeners) and i want replace this listener by another function.
I add the celldblclick listener and if the user click on the column number 1, an alert is open.

thanks in advance

(sorry for my bad english, i'm french)

same66
20 Dec 2010, 12:38 AM
Resolved !

If you have the same problem, put your code in the jslint.com and the see the error.
For me, the problem was the semilicon...

I add a ',' and it was a problem

Thanks :)