| <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="AJAXError._Default" %> |
| <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %> |
| <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %> |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| <html xmlns="http://www.w3.org/1999/xhtml"> |
| <head id="Head1" runat="server"> |
| <title></title> |
| </head> |
| <body> |
| <form id="form1" runat="server"> |
| <div> |
| <telerik:RadScriptManager runat="server"> |
| </telerik:RadScriptManager> |
| <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server"> |
| <AjaxSettings> |
| <telerik:AjaxSetting AjaxControlID="RadAjaxPanel1"> |
| <UpdatedControls> |
| <telerik:AjaxUpdatedControl ControlID="RadAjaxPanel1" LoadingPanelID="RadAjaxLoadingPanel1" /> |
| </UpdatedControls> |
| </telerik:AjaxSetting> |
| </AjaxSettings> |
| </telerik:RadAjaxManager> |
| <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" Skin="Web20" /> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" Height="200px" Width="300px"> |
| <telerik:RadMultiPage ID="RadMultiPage1" runat="server"> |
| <telerik:RadPageView ID="RadPageView1" runat="server"> |
| <asp:Button ID="Button1" runat="server" Text="Switch Page" OnClick="Button1_Click" /> |
| </telerik:RadPageView> |
| <telerik:RadPageView ID="RadPageView2" runat="server"> |
| <asp:TextBox ID="TextBox1" runat="server" /><br /> |
| <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="TextBox1" |
| ErrorMessage="The field is required." EnableClientScript="true" ValidationGroup="ValidateMe" /> |
| <asp:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="RequiredFieldValidator1"> |
| </asp:ValidatorCalloutExtender> |
| <asp:Button ID="Button2" runat="server" Text="Set Text" OnClick="Button2_Click" ValidationGroup="ValidateMe" /> |
| </telerik:RadPageView> |
| <telerik:RadPageView ID="RadPageView3" runat="server"> |
| <asp:Label ID="Label1" runat="server" /> |
| </telerik:RadPageView> |
| </telerik:RadMultiPage> |
| </telerik:RadAjaxPanel> |
| </div> |
| </form> |
| </body> |
| </html> |
| using System; |
| using System.Threading; |
| namespace AJAXError |
| { |
| public partial class _Default : System.Web.UI.Page |
| { |
| protected void Page_Load(object sender, EventArgs e) |
| { |
| if (!IsPostBack) |
| { |
| RadMultiPage1.SelectedIndex = 0; |
| } |
| } |
| protected void Button1_Click(object sender, EventArgs e) |
| { |
| RadMultiPage1.SelectedIndex = 1; |
| } |
| protected void Button2_Click(object sender, EventArgs e) |
| { |
| Thread.Sleep(2000); // To see the ajax panel working. |
| Label1.Text = TextBox1.Text; |
| RadMultiPage1.SelectedIndex = 2; |
| } |
| } |
| } |
| BPROD BCHLD BMBOMM ICOND BQREQ IDESC ICITYP BSEQ |
| 6101673042 6101673040 23 1 16.300-16.73 SLV TAPPING W4"BR M 1 |
| 6101673042 830034001 9 1.865 GSKT STRIP GRADE 33 WATER 7 2 |
| 6101673042 40029606001 23 6 0.750 WSHR CARBON STEEL P 3 |
| 6101673042 40050025201 23 1 3/4 NPT PLUG SQHD STEEL ECOAT M 4 |
| BPROD BCHLD BMBOMM ICOND BQREQ IDESC ICITYP BSEQ |
| 40050025201 40050025003 0 1 3/4 NPT PLUG SQ HD A105 FS P 1 |
| 40050025201 400500252019 23 1 VENDOR'S ECOATING PLUG PIPE P 2 |
| 6101673042 10547999 11 1 INSTR INSTL STYLE 610 6 5 |
| 6101673042 727010619 0 1 3-1/4 X 5 PKG LABEL 6 6 |
| 6101673042 40029677202 0 6 0.750 NUT HEX HEAVY E-COAT CS P 7 |
| 6101673042 40010004250 23 6 0.750 BOLT TRK HD X 9'' L, 5'' THRD, BARE P 8 |
| 6101673042 918110002 0 2.2 FDA THICK FIL GREY COATG EPOXY P 9 |
| 6101673042 30008461504 23 1 4.0 GSKT RED RUBBER FLG 1/8" P 10 |
| <rad:RadGrid ID="gridRole" runat="server" AutoGenerateColumns="false" AllowPaging="true" AllowSorting="true" Skin="Black"><MasterTableView |
| CommandItemDisplay="Top" EnableNoRecordsTemplate="true" |
| ShowHeadersWhenNoRecords="true" EditMode="PopUp"><CommandItemSettings |
| AddNewRecordText="Add Role" RefreshText="Refresh" /><NoRecordsTemplate><label |
| style="font-size:medium;">No roles available</label></NoRecordsTemplate><Columns> |
| <rad:GridEditCommandColumn ButtonType="LinkButton" CancelText="Cancel" |
| EditText="Edit" UpdateText="Update" /> |
| <rad:GridBoundColumn DataField="Name" HeaderText="Name" /> |
| <rad:GridButtonColumn ButtonType="LinkButton" Text="Delete" |
| CommandName="DeleteRole" CommandArgument="RoleName" /> |
| </Columns> |
| <EditFormSettings EditFormType="Template" InsertCaption="New Role"> |
| <PopUpSettings Modal="false" ZIndex="2500"/> |
| <FormTemplate> |
| <fieldset class="forms" style="width:540px;"> |
| <div class="required"><label>Name</label><asp:TextBox |
| ID="txtRoleName" runat="server" Text='<%#Bind("RoleName") %>' /></div> |
| <div class="optional"><label>Description</label><asp:TextBox |
| ID="txtRoleDesc" runat="server" Text='<%#Bind("Description") %>' |
| TextMode="MultiLine" Rows="10"/></div> |
| <asp:Button ID="btnRoleUpdate" runat="server" |
| Text='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "Insert", "Update") %>' |
| CommandName='<%# IIf((TypeOf(Container) is GridEditFormInsertItem), "PerformRoleInsert", "Update")%>' /> <asp:Button |
| ID="btnRoleCancel" runat="server" Text="Cancel" |
| CausesValidation="False" CommandName="Cancel"/></fieldset></FormTemplate></EditFormSettings></MasterTableView><ClientSettings><ClientEvents |
| OnRowDblClick="RowDblClick" /></ClientSettings></rad:RadGrid> |
I am having what seems to be a Firefox specific issue with a RadWindow and wanted to know if there is something I am missing about how Firefox handles this situation in a RadWindow.
I have a RadWindow that loads a page that dynamically populates the contents of dropdowns based on the selected value in another dropdown, however in Firefox this is not functioning the same as Internet Explorer.
Internet Explorer
The selected item on cboDropdown1 is changed on the selected index change then cboDropdown2 is populated with the applicable values. When the page refreshes the selected index of cboDropdown1 is retained.
Firefox
The selected item on cboDropdown1 is changed on the selected index change then cboDropdown2. When the page refreshes the selected index of cboDropdown1 is not retained and the first item in the drop down cboDropdown1 is selected.
The page that loads in the RadWindow originally had a RadAjaxPanel and RadLoadingPanel where the controls were contained within the RadAjaxPanel, but I removed the RadAjax panel to see what occurs in regular Postback scenarios and the same issue occurs in Firefox, but not IE. I have attached an image of the original page structure.
If I need to add particular code to address this, what would that be and on which page should I add it (e.g. OriginalRegularPage.aspx, RadWindow 1 page, RadWindow 2 page).
<telerik:GridTemplateColumn HeaderText="StockingTime" UniqueName="StockingTime">
<HeaderStyle HorizontalAlign="Right" />
<ItemStyle HorizontalAlign="Right" />
<ItemTemplate>
<telerik:RadNumericTextBox ID="grdSupplyChain_StockingTime_NumericEditor" runat="server" MaxValue="999" MinValue="0"
NumberFormat-DecimalDigits="2" NumberFormat-GroupSeparator="" NumberFormat-DecimalSeparator="." Width="75px"
Type="Number" ShowSpinButtons="true" Text='<%# Eval("StockingTime") %>'>
<IncrementSettings Step="0.01" InterceptMouseWheel="true" />
</telerik:RadNumericTextBox>
</ItemTemplate>
</telerik:GridTemplateColumn>
This did not happen with Q2 2009 (which is still in the system and has not been uninstalled).
Is there some other log I could look at.
Any suggestions?
I am using winXP 64bit with 6gb ram (so have full access to the available mem).
Also installed is Resharper4.5