PDA

View Full Version : Calling destroy() on a Grid with a PagingToolbar generates a JS error on FF



begineer2
18 Aug 2009, 12:13 AM
Hi,

I am using Ext 2.2.1 and I have a problem with a grid.

When I am calling destroy() method on a grid which contains a PagingToolbar configured like this in the grid:

bbar : pagingBar

the following exception appears only on Mozilla FF (I am using 3.5.2):

tip is undefined
tip.unregister.apply(tip, arguments); ext-all-debug.js (line 23240)

where pagingBar is defined simply like this:


var pagingBar = new Ext.PagingToolbar({
pageSize: 10,
store: store,
displayInfo: true
});

Calling destroy on a grid without a bbar work perfectly fine.
Can you please suggest what should I do in order to be able to call destroy on the grid without this error?

begineer2
18 Aug 2009, 11:55 PM
Hi,

Is this a known problem? Did nobody else have this issue?

Please help :)

Condor
19 Aug 2009, 12:24 AM
I assume it's caused by this bug (http://extjs.com/forum/showthread.php?t=59121).

I recommend upgrading to Ext 2.3 (or 3.0).

ps. But if you don't want to you can work around the problem by adding:

Ext.QuickTips.init();
on the first line in your Ext.onReady code.

begineer2
20 Aug 2009, 3:50 AM
Hi,

Thanks, that was the problem. Finally I've upgraded to ExtJS 2.3.0 and it works fine now.

Thank you