Yesterday, I upgraded our C# ASP.NET solution from .NET 2.0 to .NET 4.0. Other things work fine. But all auto postbacks are suppressed after that.
Our telerik controls are kind of out dated. But because of project timeline, we don’t have time to upgrade our telerik controls for now. I just checked, our RadAjax.Net2 runtime version is v2.0.50727. Out Telerik.Web.UI runtime version is also v2.0.50727.
The following is the code. As you can see with my comments, the drop down list inside the RadAjaxPanel does Not do postback after I select a different value in the list. But the drop down list outside of the RadAjaxPanel works fine.
And this problem is not just for drop down list. It’s for other controls such as radio button DateTimePicker etc. But our buttons are working fine. So it looks like it's the autoposts are suppressed.
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Position.ascx.cs" Inherits="Oaccac.WebPmi.Controls.Position" %>
<%@ Register TagPrefix="rad" Namespace="Telerik.WebControls" Assembly="RadAjax.Net2" %>
<%@ Register Src="~/Controls/TelerikAjax/LoadingPanelContent.ascx" TagPrefix="uc" TagName="LoadingPanelContent" %>
<rad:RadAjaxPanel ID="ajaxServiceOfferPanel" LoadingPanelID="ajaxServiceOfferLoadingPanel" runat="server" UseEmbeddedScripts="true" EnableOutsideScripts="true">
<!--This DropDownList does Not do post back.-->
<asp:DropDownList ID="ddlTest" runat="server" AutoPostBack="true">
<asp:ListItem>One</asp:ListItem>
<asp:ListItem>Two</asp:ListItem>
</asp:DropDownList>
</rad:RadAjaxPanel>
<!--This DropDownList does post back.-->
<asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="true">
<asp:ListItem>Three</asp:ListItem>
<asp:ListItem>Four</asp:ListItem>
</asp:DropDownList>
<rad:AjaxLoadingPanel ID="ajaxServiceOfferLoadingPanel" runat="server" InitialDelayTime="0">
<uc:LoadingPanelContent ID="loadingServiceOfferPanelContent" runat="server" />
</rad:AjaxLoadingPanel>