I have an update panel in which there is a place holder. I add rows of controls (radswitch) to the placeholder from code behind (denoting course list). Each time the radswitch is toggled, an associated server side method needs to be called. The code works up to this point. I added a term-selector RadComboBox item (denoting time frame such as semester and year) as a search filter to be passed on the back-end to filter the courses. This opened up a stubborn problem. Now the radswitch does not call its back-end method at all. It does postback but does not remember that it needs to call its associated method (RadSwitch_CheckedChanged).
radSwitch.CheckedChanged += new EventHandler(RadSwitch_CheckedChanged);Can someone help me with this issue? I have a spent a lot of time and am unable to understand what is going on?Appreciate your help! The front-end code is below <asp:UpdatePanel ID="upCourseFilter" runat="server" Visible="true" ChildrenAsTriggers="true" UpdateMode="Always"> <ContentTemplate> <fieldset> <legend class="legend" tabindex="0">Course Filters</legend> <div id="FilterGroup" > <label id="lblTermSelector" for="TermSelector" class="label">Select Term</label><br /> <telerik:RadComboBox ID="TermSelector" runat="server" OnSelectedIndexChanged="TermSelector_SelectedIndexChanged" AutoPostBack="true" EnableViewState="true" CssClass="w3-select w3-border w3-animate w3-hover-border-blue text" Font-Names="Futura Std" Style="width: 95%" name="option" TabIndex="0" Filter="Contains" LoadingMessage="Loading please"> <Items> <telerik:RadComboBoxItem Selected="True" Text="Select One" Value="Select Term" /> </Items> </telerik:RadComboBox> <asp:HiddenField ID="hfTermSelected" runat="server" /> <asp:Label ID="OutputFromAPICall" runat="server" /> <asp:Label ID="Label1" runat="server" /> <asp:Label ID="lblComplete" runat="server" /> <asp:PlaceHolder ID="PlaceHolder1" runat="server" EnableViewState="true"/> </div> </fieldset> </ContentTemplate> </asp:UpdatePanel>