本文整理汇总了C#中Ext.Net.Observable类的典型用法代码示例。如果您正苦于以下问题:C# Observable类的具体用法?C# Observable怎么用?C# Observable使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Observable类属于Ext.Net命名空间,在下文中一共展示了Observable类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Launch_AfterItemAdd
void Launch_AfterItemAdd(Observable item)
{
if (!this.Controls.Contains(item))
{
this.Controls.Add(item);
}
}
示例2: OnBeforeClientInit
protected override void OnBeforeClientInit(Observable sender)
{
if (this.ViewState["LazyMode"] == null)
{
this.LazyMode = LazyMode.Config;
}
}
示例3: Launch_AfterItemRemove
void Launch_AfterItemRemove(Observable item)
{
if (this.Controls.Contains(item))
{
this.Controls.Remove(item);
}
}
示例4: OnBeforeClientInit
protected override void OnBeforeClientInit(Observable sender)
{
if (this.AutoPostBack)
{
this.On("change", new JFunction(this.PostBackFunction));
}
}
示例5: OnBeforeClientInit
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);
}
示例6: OnBeforeClientInit
protected override void OnBeforeClientInit(Observable sender)
{
if(this.Remote)
{
this.ForceIdRendering = true;
}
base.OnBeforeClientInit(sender);
}
示例7: OnBeforeClientInit
protected override void OnBeforeClientInit(Observable sender)
{
base.OnBeforeClientInit(sender);
this.RegisterStatusIcon(this.DefaultIcon);
this.RegisterStatusIcon(this.BusyIcon);
this.RegisterStatusIcon(this.Icon);
}
示例8: OnBeforeClientInit
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);
}
示例9: OnBeforeClientInit
/// <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;
}
}
示例10: OnBeforeClientInit
protected override void OnBeforeClientInit(Observable sender)
{
base.OnBeforeClientInit(sender);
if (this.Target.IsEmpty())
{
throw new Exception("You must define Target for ClickRepeater");
}
}
示例11: OnBeforeClientInit
protected override void OnBeforeClientInit(Observable sender)
{
base.OnBeforeClientInit(sender);
if (!X.IsAjaxRequest)
{
this.RegisterCalculations();
}
}
示例12: OnBeforeClientInit
/// <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);
}
示例13: OnBeforeClientInit
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();
}
}
示例14: OnBeforeClientInit
/// <summary>
///
/// </summary>
/// <param name="sender"></param>
protected override void OnBeforeClientInit(Observable sender)
{
base.OnBeforeClientInit(sender);
if (this.StandardFields)
{
this.AddStandardFields();
}
}
示例15: OnBeforeClientInit
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));
}
}