Feb 12, 2009, 6:38 AM
[CLOSED] ComboBox style help
Hi
I want to format a ComboBox like this.
Header 1 <-Selectable BGcolor = red
Value 1-1 <-Selectable <-a tab at the beginning
Value 1-2 <-Selectable <-a tab at the beginning
Value 1-3 <-Selectable <-a tab at the beginning
Header 2 <-Selectable BGcolor = red
Value 1-1 <-Selectable <-a tab at the beginning
Value 1-2 <-Selectable <-a tab at the beginning
Value 1-3 <-Selectable <-a tab at the beginning
How do I do that?
The combo is loaded like this
object data = new object[]
{
new object[]{"1","Header 1"},
new object[]{"1-1","Value 1-1"},
new object[]{"1-2","Value 1-2"},
new object[]{"1-3","Value 1-3"},
new object[]{"2","Header 2"},
new object[]{"2-1","Value 2-1"},
new object[]{"2-2","Value 2-2"},
new object[]{"2-3","Value 2-3"},
};
StoreCombo1.DataSource = data;
StoreCombo1.DataBind();
<ext:ComboBox ID="cbCombo1" runat="server"
Width="200"
FireSelectonload="true"
StoreID="StoreCombo1"
TypeAhead="true"
Mode="Local"
ForceSelection="true"
TriggerAction="All"
DisplayField="Combo1Name"
ValueField="Combo1Id"
EmptyText="No items" />
/mikael