Surprising that ExtJS doesn't do this for us :-(