protected override void OnBeforeClientInit(Observable sender)
{
base.OnBeforeClientInit(sender);
if (this.LoadMask.ShowMask && !this.AutoLoad.IsDefault)
{
// Stomp on Show Listener if adding LoadMask.
// Required because listener must be wired up during instantiation.
string loadMask = "el.loadMask=new Ext.LoadMask(el.body,".ConcatWith(new ClientConfig().Serialize(this.LoadMask), ");");
this.Listeners.Show.Handler = this.Listeners.Show.Handler.EnsureSemiColon().ConcatWith(loadMask);
}
}