M
Michael Combs
I am building a combobox webcontrol which works from a collection of
ListItems similar to a standard DropDownList. It uses
AddparsedSubObject to load the nested ListItem objects (below).
<cc1:combobox id="ComboBox1" runat="server">
<cc1:ListItem Text="test1" Value="1"
Selected="False"></cc1:ListItem>
<cc1:ListItem Text="test2" Value="2"
Selected="False"></cc1:ListItem>
</cc1:combobox>
I am also overriding Load and Save viewstate to maintain the listitems
in the viewstate. AddParsedSubObject is always called, in which the
nested ListItems are loaded into my item list. Then in LoadViewState,
I'm clearing my item list and loading the list items from the
viewstate. Is this the correct method for handling this situation?
Thanks,
Michael Combs
ListItems similar to a standard DropDownList. It uses
AddparsedSubObject to load the nested ListItem objects (below).
<cc1:combobox id="ComboBox1" runat="server">
<cc1:ListItem Text="test1" Value="1"
Selected="False"></cc1:ListItem>
<cc1:ListItem Text="test2" Value="2"
Selected="False"></cc1:ListItem>
</cc1:combobox>
I am also overriding Load and Save viewstate to maintain the listitems
in the viewstate. AddParsedSubObject is always called, in which the
nested ListItems are loaded into my item list. Then in LoadViewState,
I'm clearing my item list and loading the list items from the
viewstate. Is this the correct method for handling this situation?
Thanks,
Michael Combs