Aug 19, 2010, 12:29 PM
combobox fill dynamically uing enum
Hi
I want to fill the combo box dynamically using the enum
<ext:Store ID="StorePlace" runat="server">
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="col1" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:ComboBox ID="cmbplace" runat="server" FieldLabel="" TypeAhead="true" AnchorHorizontal="90%"
Mode="Local" ListAlign="left">
</ext:ComboBox>
StorePlace.DataSource = Enum.GetNames(typeof(Occupation));
StorePlace.DataBind();
cmbOccupation.StoreID = StorePlace.ID.ToString();
cmbOccupation.DataBind();
Pls help me out
I want to fill the combo box dynamically using the enum
<ext:Store ID="StorePlace" runat="server">
<Reader>
<ext:JsonReader>
<Fields>
<ext:RecordField Name="col1" />
</Fields>
</ext:JsonReader>
</Reader>
</ext:Store>
<ext:ComboBox ID="cmbplace" runat="server" FieldLabel="" TypeAhead="true" AnchorHorizontal="90%"
Mode="Local" ListAlign="left">
</ext:ComboBox>
StorePlace.DataSource = Enum.GetNames(typeof(Occupation));
StorePlace.DataBind();
cmbOccupation.StoreID = StorePlace.ID.ToString();
cmbOccupation.DataBind();
Pls help me out