Mar 24, 2011, 4:08 PM
MultiCombo (Connected to Store) - cannot select items in list
Hey again,
I have a MultiCombo that is connected to a Store, and that Store is populated in Page_Load.
The MultiCombo shows all entries, but I cannot select them. They are "unclickable", nothing happens. I dont understand why. Anyone know? =)
Code:
I have a MultiCombo that is connected to a Store, and that Store is populated in Page_Load.
The MultiCombo shows all entries, but I cannot select them. They are "unclickable", nothing happens. I dont understand why. Anyone know? =)
Code:
protected void Page_Load(object sender, EventArgs e)
{
List<object> asd = new List<object>();
Assembly[] asms = AppDomain.CurrentDomain.GetAssemblies();
foreach (Assembly assembly in asms)
{
Type[] typeArray = assembly.GetTypes();
foreach (Type type in typeArray)
{
if (type.IsSubclassOf(typeof(MyNiceType)))
{
asd.Add(new object[] { type.ToString(), type.Name, type });
}
}
}
Store_LoginChannels.DataSource = asd;
Store_LoginChannels.DataBind();
}
The MultiCombo looks like this:<ext:MultiCombo ID="MultiCombo_allowedLoginChannels" runat="server" SelectionMode="All" FieldLabel="Log in through" Width="175" StoreID="Store_LoginChannels"
DisplayField="typeName"
ValueField="typeObject"
EmptyText="Choose">
</ext:MultiCombo>
and the Store:<ext:Store ID="Store_LoginChannels" runat="server">
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="typeStringId" />
<ext:RecordField Name="typeName" />
<ext:RecordField Name="typeObject" />
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>