Example #1
0
 void Launch_AfterItemRemove(Observable item)
 {
     if (this.Controls.Contains(item))
     {
         this.Controls.Remove(item);
     }
 }
Example #2
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            if (this.SyncUrl.IsNotEmpty())
            {
                if (this.Proxy.Count > 0 && this.Proxy.Primary is ServerProxy)
                {
                    ((ServerProxy)this.Proxy.Primary).API.Sync = this.SyncUrl;
                }
                else if (this.ModelInstance != null && this.ModelInstance.Proxy.Count > 0 && this.ModelInstance.Proxy.Primary is ServerProxy)
                {
                    ((ServerProxy)this.ModelInstance.Proxy.Primary).API.Sync = this.SyncUrl;
                }
                else if (this.ServerProxy.Count > 0)
                {
                    if (this.ServerProxy.Primary is ServerProxy)
                    {
                        ((ServerProxy)this.ServerProxy.Primary).API.Sync = this.SyncUrl;
                    }
                }
                else
                {
                    this.ServerProxy.Add(new AjaxProxy
                    {
                        API =
                        {
                            Sync = this.SyncUrl
                        }
                    });
                }

            }

            base.OnBeforeClientInit(sender);
        }
Example #3
0
 protected override void OnBeforeClientInit(Observable sender)
 {
     if (this.AutoPostBack)
     {
         this.On("change", new JFunction(this.PostBackFunction));
     }
 }
Example #4
0
 protected override void OnBeforeClientInit(Observable sender)
 {
     if (this.ViewState["LazyMode"] == null)
     {
         this.LazyMode = LazyMode.Config;
     }
 }
Example #5
0
 void Launch_AfterItemAdd(Observable item)
 {
     if (!this.Controls.Contains(item))
     {
         this.Controls.Add(item);
     }
 }
 protected override void OnBeforeClientInit(Observable sender)
 {
     if (this.Mode == LoadMode.Frame && this.AjaxOptions != null)
     {
      //   throw new Exception("Frame mode doesn't support AjaxOptions");
     }
     base.OnBeforeClientInit(sender);
 }
 protected override void OnBeforeClientInit(Observable sender)
 {
     if(this.Remote)
     {
         this.ForceIdRendering = true;
     }
     base.OnBeforeClientInit(sender);
 }
Example #8
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            this.RegisterStatusIcon(this.DefaultIcon);
            this.RegisterStatusIcon(this.BusyIcon);
            this.RegisterStatusIcon(this.Icon);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        protected override void OnBeforeClientInit(Observable sender)
        {
            if(!this.OverOnly && this.Component.Count > 0)
            {
                this.Component[0].IDMode = Ext.Net.IDMode.Ignore;
            }

            base.OnBeforeClientInit(sender);
        }
Example #10
0
 protected override void OnBeforeClientInit(Observable sender)
 {
     base.OnBeforeClientInit(sender);
     
     if (this.OnClientClick.IsNotEmpty())
     {
         this.Handler = new JFunction(TokenUtils.ParseTokens(this.OnClientClick, this), "item", "e").ToScript();
     }
 }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.CalendarStoreID.IsEmpty() && this.CalendarPanel != null)
            {
                this.CalendarStoreID = this.CalendarPanel.CalendarStoreID;
            }
        }
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (!this.DesignMode && !this.AutoRender && this.ClientForm.IsNotEmpty() && (!Ext.Net.X.IsAjaxRequest || this.IsDynamic))
            {
                this.DefaultRenderTo = Ext.Net.DefaultRenderTo.Form;
            }
        }
Example #13
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            if (this.Component.Count > 0 && this.SingleExpand.HasValue && !this.SingleExpand.Value)
            {
                this.Component[0].IDMode = Ext.Net.IDMode.Ignore;
            }

            base.OnBeforeClientInit(sender);
        }
Example #14
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.Editor.Primary != null && !this.IsRowEditing)
            {
                throw new Exception("CheckColumn doesn't support Editor as cell editor. Please use Editable property");
            }
        }
Example #15
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (!X.IsAjaxRequest)
            {
                this.RegisterCalculations();
            }
        }
Example #16
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.AutoPostBack)
            {
                this.CustomConfig.Add(new ConfigItem("tabPostback", JSON.Serialize(new JFunction(this.PostBackFunction)), ParameterMode.Raw));
            }
        }
Example #17
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.Locked.HasValue && this.Locked.Value && this.Flex > 0)
            {
                throw new Exception("Columns which are locked do NOT support a flex width. You must set a width on the '" + this.Text + "' column.");
            }
        }
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.Target.IsEmpty())
            {
                throw new Exception("You must define Target for ClickRepeater");
            }
        }
Example #19
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.StandardFields)
            {
                this.AddStandardFields();
            }
        }
Example #20
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.Reader.Primary != null && this.IsProxyDefined)
            {
                throw new Exception(ServiceMessages.DEFINE_READER_FOR_PROXY);
            }

            if (this.Writer.Primary != null && this.IsProxyDefined)
            {
                throw new Exception(ServiceMessages.DEFINE_WRITER_FOR_PROXY);
            }
        }
Example #21
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        protected override void OnBeforeClientInit(Observable sender)
        {
            if(!this.OverOnly && this.Component.Count > 0)
            {
                this.Component[0].IDMode = Ext.Net.IDMode.Ignore;
            }

            if (this.Parent != null && this.Parent.Parent is TreePanelBase)
            {
                throw new System.Exception("TreePanel doesn't support ComponentColumn");
            }

            base.OnBeforeClientInit(sender);
        }
Example #22
0
        /// <summary>
        /// 
        /// </summary>
        /// <param name="sender"></param>
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.AutoLoad)
            {
                this.AutoLoad = false;
                this.CustomConfig.Add(new ConfigItem("deferLoad", "true", ParameterMode.Raw));
            }

            if (this.StandardFields)
            {
                this.AddStandardFields();
            }
        }
Example #23
0
        void CheckboxSelModel_OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.SingleSelect)
            {
                this.HideCheckAll = true;
            }

            if (this.HideCheckAll && !this.DesignMode && !RequestManager.IsAjaxRequest)
            {
                this.Header = "&nbsp;";
                this.ResourceManager.RegisterClientStyleBlock("hide-checkall-fix" + this.ParentComponent.ClientID.GetHashCode(), "#".ConcatWith(this.ParentComponent.ClientID, " .x-grid3-hd-checker{background: transparent !important;}"));
            }
        }
Example #24
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            if (this.Maximizable)
            {
                this.CustomConfig.Add(new ConfigItem("maximizable", "true", ParameterMode.Raw));
            }

            if (this.Minimizable)
            {
                this.CustomConfig.Add(new ConfigItem("minimizable", "true", ParameterMode.Raw));
            }

            this.Hidden = true;

            base.OnBeforeClientInit(sender);
        }
Example #25
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (this.BaseParams.Count > 0)
            {
                if (this.Listeners.BeforeAction.IsDefault)
                {
                    this.Listeners.BeforeAction.Fn = this.BuildParams(this.BaseParams, null, true);
                }
                else
                {
                    if (this.Listeners.BeforeAction.Fn.IsNotEmpty())
                    {
                        this.Listeners.BeforeAction.Fn = this.BuildParams(this.BaseParams, this.Listeners.BeforeAction.Fn, true);
                    }
                    else
                    {
                        this.Listeners.BeforeAction.Fn = this.BuildParams(this.BaseParams, this.Listeners.BeforeAction.Handler, false);
                    }
                }
            }
        }
Example #26
0
 public RowExpanderDirectEvents(Observable parent)
 {
     this.Parent = parent;
 }
Example #27
0
 public PanelHeaderDirectEvents(Observable parent) { this.Parent = parent; }
Example #28
0
 public GridViewDirectEvents(Observable parent) { this.Parent = parent; }        
Example #29
0
 public MonthViewDirectEvents(Observable parent) { this.Parent = parent; }
 public MouseDistanceSensorDirectEvents(Observable parent) { this.Parent = parent; }
Example #31
0
 public BoxReordererDirectEvents(Observable parent)
 {
     this.Parent = parent;
 }
 public FlashComponentDirectEvents(Observable parent) { this.Parent = parent; }
Example #33
0
 public PanelHeaderDirectEvents(Observable parent)
 {
     this.Parent = parent;
 }