请问Ext.Net 中的MultiCombo控件如何支持手动输入值?
不仅可以下拉选择也可以手动输入值 Editable="true"是不行的
下面这段代码是反编译Ext.Net.dll中的类MultiCombo看到的 [Description("")]
protected override void OnBeforeClientInit(Observable sender)
{
if (this.Editable)
{
throw new Exception("The MultiCombo doesn't support Editable mode");
}
base.InitPostBack();
if (this.StoreID.IsNotEmpty() || (this.Store.Primary != null))
{
Store store = this.Store.Primary ?? ControlUtils.FindControl<Store>(this, this.StoreID, true);
if (store == null)
{
throw new InvalidOperationException("The Control '{0}' could not find the StoreID of '{1}'.".FormatWith(new object[] { this.ID, this.StoreID }));
}
}
else
{
this.TriggerAction = TriggerAction.All;
this.Mode = DataLoadMode.Local;
}
}
不仅可以下拉选择也可以手动输入值 Editable="true"是不行的
下面这段代码是反编译Ext.Net.dll中的类MultiCombo看到的 [Description("")]
protected override void OnBeforeClientInit(Observable sender)
{
if (this.Editable)
{
throw new Exception("The MultiCombo doesn't support Editable mode");
}
base.InitPostBack();
if (this.StoreID.IsNotEmpty() || (this.Store.Primary != null))
{
Store store = this.Store.Primary ?? ControlUtils.FindControl<Store>(this, this.StoreID, true);
if (store == null)
{
throw new InvalidOperationException("The Control '{0}' could not find the StoreID of '{1}'.".FormatWith(new object[] { this.ID, this.StoreID }));
}
}
else
{
this.TriggerAction = TriggerAction.All;
this.Mode = DataLoadMode.Local;
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货