Exemplo n.º 1
0
 void Launch_AfterItemRemove(Observable item)
 {
     if (this.Controls.Contains(item))
     {
         this.Controls.Remove(item);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 protected override void OnBeforeClientInit(Observable sender)
 {
     if (this.AutoPostBack)
     {
         this.On("change", new JFunction(this.PostBackFunction));
     }
 }
Exemplo n.º 4
0
 protected override void OnBeforeClientInit(Observable sender)
 {
     if (this.ViewState["LazyMode"] == null)
     {
         this.LazyMode = LazyMode.Config;
     }
 }
Exemplo n.º 5
0
 void Launch_AfterItemAdd(Observable item)
 {
     if (!this.Controls.Contains(item))
     {
         this.Controls.Add(item);
     }
 }
Exemplo n.º 6
0
 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);
 }
Exemplo n.º 7
0
 protected override void OnBeforeClientInit(Observable sender)
 {
     if(this.Remote)
     {
         this.ForceIdRendering = true;
     }
     base.OnBeforeClientInit(sender);
 }
Exemplo n.º 8
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            this.RegisterStatusIcon(this.DefaultIcon);
            this.RegisterStatusIcon(this.BusyIcon);
            this.RegisterStatusIcon(this.Icon);
        }
Exemplo n.º 9
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;
            }

            base.OnBeforeClientInit(sender);
        }
Exemplo n.º 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();
     }
 }
Exemplo n.º 11
0
        /// <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;
            }
        }
Exemplo n.º 12
0
        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;
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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");
            }
        }
Exemplo n.º 15
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

            if (!X.IsAjaxRequest)
            {
                this.RegisterCalculations();
            }
        }
Exemplo n.º 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));
            }
        }
Exemplo n.º 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.");
            }
        }
Exemplo n.º 18
0
        protected override void OnBeforeClientInit(Observable sender)
        {
            base.OnBeforeClientInit(sender);

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

            if (this.StandardFields)
            {
                this.AddStandardFields();
            }
        }
Exemplo n.º 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);
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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();
            }
        }
Exemplo n.º 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;}"));
            }
        }
Exemplo n.º 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);
        }
Exemplo n.º 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);
                    }
                }
            }
        }
Exemplo n.º 26
0
 public RowExpanderDirectEvents(Observable parent)
 {
     this.Parent = parent;
 }
Exemplo n.º 27
0
 public PanelHeaderDirectEvents(Observable parent) { this.Parent = parent; }
Exemplo n.º 28
0
 public GridViewDirectEvents(Observable parent) { this.Parent = parent; }        
Exemplo n.º 29
0
 public MonthViewDirectEvents(Observable parent) { this.Parent = parent; }
Exemplo n.º 30
0
 public MouseDistanceSensorDirectEvents(Observable parent) { this.Parent = parent; }
Exemplo n.º 31
0
 public BoxReordererDirectEvents(Observable parent)
 {
     this.Parent = parent;
 }
Exemplo n.º 32
0
 public FlashComponentDirectEvents(Observable parent) { this.Parent = parent; }
Exemplo n.º 33
0
 public PanelHeaderDirectEvents(Observable parent)
 {
     this.Parent = parent;
 }