Ext.Net.RequestManager.EnsureDirectEvent C# (CSharp) Method

EnsureDirectEvent() private method

private EnsureDirectEvent ( ) : void
return void
        protected internal static void EnsureDirectEvent()
        {
            if (!RequestManager.IsAjaxRequest)
            {
                throw new InvalidOperationException("This operation requires an AjaxRequest");
            }
        }

Usage Example

Esempio n. 1
0
        protected virtual void SetHideHeaders(bool hide)
        {
            RequestManager.EnsureDirectEvent();

            this.AddScript("{0}.headerCt.setVisible({1});", this.ClientID, JSON.Serialize(!hide));
            this.DoComponentLayout();
        }
All Usage Examples Of Ext.Net.RequestManager::EnsureDirectEvent