Gaia Ajax: Cascading DropDownList
This is our cascading Ajax DropDownList sample. In
ASP.NET AJAX Toolkit Extensions there's an example of how to
create a "related DropDownList/ComboBox widget". In Gaia Ajax
we get this wanted behavour by using the standard DropDownList control
without any modifications.
Select a genre:
Select a game:
Markup (ASPX/.aspx)
1:
2: Select a genre:
3: <gaia:DropDownList ID="ddlGamesGenres" runat="server" AutoPostBack="True"
4: OnSelectedIndexChanged="ddlGamesGenres_SelectedIndexChanged"
5: Width="179px" />
6: <br />
7: <br />
8: Select a game:
9: <gaia:DropDownList ID="ddlGames" runat="server" AutoPostBack="true"
10: OnSelectedIndexChanged="ddlGames_SelectedIndexChanged" Enabled="false"
11: Width="179px">
12: <asp:ListItem Text="None..." />
13: </gaia:DropDownList>
14: <br />
15: <br />
16: <gaia:Label ID="lblSelectedGame" runat="server" Text="" />
17: