PDA

View Full Version : Change 'emptyText' of a Ext.View after created



zeppelin
2 Jul 2007, 4:24 AM
I would like to change the emptyText item showed for a Ext.View after several conditions. Simply reassigning the property does not work:

viewReference.emptyText = "New Empty Item Value";

I've tried adding a viewReference.refresh() line after this, but didn't worked.

Also, I've been testing use a mask, but once disabled it is not displayed any more...

Any idea? Thanks!

tryanDLS
2 Jul 2007, 7:36 AM
Refresh only updates the display if there are no records. I just tested this with the Chooser example in 1.1B2. Set a BP in the choose fn, update the emptyText property, call refresh - the display is updated correctly.