I have a RadComboBox with an Item Template to do multi selection. When the user clicks in the check boxes in the drop down the appropriate text is placed in the Combobox Text just as in the Telerik examples. But When the user closes the combo I want the server event OnSelectedIndexChanged to fire so I can reload other combos based on the selections from the previous combo.
The only way I could get OnSelectedIndexChanged to fire is by setting AutoPostPack to "True". But when I did that it would wipe out the text of the changed combobox. So I set EnableViewState to "False" and that wiped out the entire combobox.
How can I retain the text values in the combobox after a postback? Or am I going about this the wrong way?
The only way I could get OnSelectedIndexChanged to fire is by setting AutoPostPack to "True". But when I did that it would wipe out the text of the changed combobox. So I set EnableViewState to "False" and that wiped out the entire combobox.
How can I retain the text values in the combobox after a postback? Or am I going about this the wrong way?
| <telerik:RadComboBox ID="cbOrganization" Runat="server" |
| AppendDataBoundItems="True" HighlightTemplatedItems="True" |
| OnItemsRequested="cbOrganization_ItemsRequested" |
| OnSelectedIndexChanged="cbOrganization_SelectedIndexChanged" |
| AutoPostBack="True"> |
| <ItemTemplate> |
| <asp:CheckBox ID="chk" runat="server" onclick="StopPropagation(event)" |
| Text='<%# DataBinder.Eval(Container.DataItem, "fffb_organizations") %>' |
| oncheckedchanged="chk_CheckedChanged" /> |
| </ItemTemplate> |
| <CollapseAnimation Type="OutQuint" Duration="200"></CollapseAnimation> |
| </telerik:RadComboBox> |