See http://www.extjs.com/forum/showthread.php?p=385421#post385421