<classes>
<class name="Clear Class" value="" />
<class name="Dropdown List" value="dl.list" />
<class name="Ordered List" value="ol.list" />
<class name="Ordered List (Steps)" value="ol.steps" />
<class name="Unordered List" value="ul.list" />
</classes>
This is the CSS
ul.list,
ol.list { margin-left: 1.5em; }
ul.list li,
ol.list li { margin-bottom: 0.5em; }
ul.list { list-style-type: disc; }
ol.list { list-style-type: decimal; }
ol.list ol.list { list-style-type: lower-alpha; }
dl.list dt { background: url(images/bullet.png) 0 7px no-repeat; padding-left: 10px; font-weight: bold; }
dl.list dd { padding-left: 10px; margin-bottom: 1em; }
ol.steps {
list-style-type: none;
}
ol.steps li { padding-left: 55px; margin-bottom: 0.5em; }
ol.steps li:nth-child(1) { background: url(images/olsteps-1.gif) 0 0 no-repeat; }
ol.steps li:nth-child(2) { background: url(images/olsteps-2.gif) 0 0 no-repeat; }
ol.steps li:nth-child(3) { background: url(images/olsteps-3.gif) 0 0 no-repeat; }
ol.steps li:nth-child(4) { background: url(images/olsteps-4.gif) 0 0 no-repeat; }
ol.steps li:nth-child(5) { background: url(images/olsteps-5.gif) 0 0 no-repeat; }
ol.steps li:nth-child(6) { background: url(images/olsteps-6.gif) 0 0 no-repeat; }
ol.steps li:nth-child(7) { background: url(images/olsteps-7.gif) 0 0 no-repeat; }
ol.steps li:nth-child(8) { background: url(images/olsteps-8.gif) 0 0 no-repeat; }
ol.steps li:nth-child(9) { background: url(images/olsteps-9.gif) 0 0 no-repeat; }
ol.steps li:nth-child(10) { background: url(images/olsteps-10.gif) 0 0 no-repeat; }
ol.steps li:nth-child(11) { background: url(images/olsteps-11.gif) 0 0 no-repeat; }
ol.steps li:nth-child(12) { background: url(images/olsteps-12.gif) 0 0 no-repeat; }
#navbar ul.list,
#content-list ul.list { margin: 0; list-style-type: none; }
#navbar ul.list li,
#content-list ul.list li { background: url(images/bullet.png) 0 7px no-repeat; margin: 0; padding-left: 10px; }
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>
<telerik:RadGrid ID="RadGrid1" runat="server" AllowPaging="True" AutoGenerateColumns="False"
CellSpacing="0" GridLines="None" Height="520px" OnNeedDataSource="RadGrid1_NeedDataSource"
OnUpdateCommand="RadGrid1_UpdateCommand" PageSize="20" Skin="WebBlue" Visible="False"
OnPreRender="RadGrid1_PreRender">
<ClientSettings>
<Selecting CellSelectionMode="None" />
<Scrolling AllowScroll="True" UseStaticHeaders="True" />
</ClientSettings>
<MasterTableView Width="100%">
<CommandItemSettings ExportToPdfText="Export to PDF" />
<RowIndicatorColumn FilterControlAltText="Filter RowIndicator column" Visible="True">
</RowIndicatorColumn>
<ExpandCollapseColumn FilterControlAltText="Filter ExpandColumn column" Visible="True">
</ExpandCollapseColumn>
<Columns>
<telerik:GridButtonColumn ButtonType="ImageButton" CommandName="Edit" HeaderStyle-Width="4%"
HeaderText="Edit" Text="Edit" UniqueName="EditButton" Visible="true">
<HeaderStyle Width="4%" />
</telerik:GridButtonColumn>
<telerik:GridBoundColumn DataField="Total Items" FilterControlAltText="Filter Total_Items column"
HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Mapped Items"
ReadOnly="true" SortExpression="Total_Items" UniqueName="Total_Items">
<HeaderStyle Font-Bold="True" Width="6%" />
</telerik:GridBoundColumn>
<telerik:GridTemplateColumn EditFormHeaderTextFormat="<font color='red'>*</font>{0}"
HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat1" UniqueName="Ariba_Cat1">
<ItemTemplate>
<asp:Label ID="lbl_catone" runat="server" Text='<%#Eval("Ariba_Cat1") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="rcb_aribacatone" runat="server" DataSourceID="Ariba_Cat1"
DataTextField="ariba_cat1" DataValueField="ariba_cat1" SelectedValue='<%# Bind("Ariba_Cat1") %>'>
</telerik:RadComboBox>
</EditItemTemplate>
<HeaderStyle Font-Bold="True" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn EditFormHeaderTextFormat="<font color='red'>*</font>{0}"
HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat2" UniqueName="Ariba_Cat2">
<ItemTemplate>
<asp:Label ID="lbl_cattwo" runat="server" Text='<%#Eval("ariba_Cat2") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="rcb_aribacattwo" runat="server" DataSourceID="aribacat2"
DataTextField="ariba_cat2" DataValueField="ariba_cat2" SelectedValue='<%# Bind("ariba_Cat2") %>'>
</telerik:RadComboBox>
</EditItemTemplate>
<HeaderStyle Font-Bold="True" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn EditFormHeaderTextFormat="<font color='red'>*</font>{0}"
HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat3" UniqueName="Ariba_Cat3">
<ItemTemplate>
<asp:Label ID="lbl_catthree" runat="server" Text='<%#Eval("Ariba_Cat3") %>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="rcb_aribacatthree" runat="server" DataSourceID="SubCategory"
DataTextField="ariba_cat3" DataValueField="ariba_cat3" SelectedValue='<%# Bind("Ariba_Cat3") %>'>
</telerik:RadComboBox>
</EditItemTemplate>
<HeaderStyle Font-Bold="True" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn EditFormHeaderTextFormat="<font color='red'>*</font>{0}"
HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat4" UniqueName="Ariba_Cat4">
<EditItemTemplate>
<telerik:RadComboBox ID="rcb_aribacatfour" runat="server" DataSourceID="ds_aribafour"
DataTextField="ariba_cat4" DataValueField="ariba_cat4" SelectedValue='<%# Bind("Ariba_Cat4") %>'>
</telerik:RadComboBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lbl_catfour" runat="server" Text='<%#Eval("Ariba_Cat4") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle Font-Bold="True" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn EditFormHeaderTextFormat="<font color='red'>*</font>{0}"
HeaderStyle-Font-Bold="true" HeaderStyle-Width="6%" HeaderText="Ariba_Cat5" UniqueName="Ariba_Cat5">
<EditItemTemplate>
<telerik:RadComboBox ID="rcb_aribacatfive" runat="server" DataSourceID="ds_catfive"
DataTextField="ariba_cat5" DataValueField="ariba_cat5" SelectedValue='<%# Bind("Ariba_Cat5") %>'>
</telerik:RadComboBox>
</EditItemTemplate>
<ItemTemplate>
<asp:Label ID="lbl_catfive" runat="server" Text='<%#Eval("Ariba_Cat5") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle Font-Bold="True" />
<ItemStyle HorizontalAlign="Left" />
</telerik:GridTemplateColumn>
</Columns>
<EditFormSettings>
<EditColumn FilterControlAltText="Filter EditCommandColumn column">
</EditColumn>
</EditFormSettings>
</MasterTableView>
<FilterMenu EnableImageSprites="False">
</FilterMenu>
</telerik:RadGrid><%--</asp:Panel>--%>
Webpage error details
User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; MS-RTC LM 8; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C; .NET4.0E; .NET CLR 1.1.4322; InfoPath.3)
Timestamp: Fri, 1 Jun 2012 16:01:18 UTC
Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500
Line: 6
Char: 84093
Code: 0
URI: http://10.9.16.61:8082/Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen-US%3a89093640-ae6b-44c3-b8ea-010c934f8924%3aea597d4b%3ab25378d2