Hi all,
Recently we upgraded our project Telerik dll's to version 2016.3.914.45 I am using a RadCombobox inside update panel which is now not populating in Firefox version 38 ,It is working fine in other browsers as well as in latest version of Firefox also but not in Firefox version 38.,during debugging in code I found that the combobox values are binding properly .Below is my code changes.Your help will be appreciated.
I am getting below javascript error in Firefox(38 vrsn).
Typeerror: 'f' is undefined.
Aspx File:-
<%@ Page Title="" Language="VB" MasterPageFile="~/MasterPages/Form.master" AutoEventWireup="false"
CodeFile="Plan.aspx.vb" Inherits="Aon.UI.FormPlan" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="Aon.GreaterInsight.WebUI" Namespace="Aon.GreaterInsight.WebUI"
TagPrefix="gi" %>
<asp:Content ID="FormHeadPlace" ContentPlaceHolderID="FormHeadPlaceHolder" runat="server">
<link href="<%= Aon.GreaterInsight.WebUI.VersionControl.GetVersion("../Styles/Entity.css") %>" rel="stylesheet" type="text/css" />
<script type="text/javascript">
function OnRadEditClientLoad(editor, args) {
var style = editor.get_contentArea().style;
style.backgroundImage = "none";
style.backgroundColor = "white";
}
function alertCallBackFn(arg) {
return false;
}
function handleMultiCountriesClick(checked) {
var tree = $find("<%= tvMultiCountries.ClientID%>");
var childNodes = tree.get_nodes();
UpdateAllChildren(childNodes, checked);
};
function UpdateAllChildren(nodes, checked) {
var i;
for (i = 0; i < nodes.get_count() ; i++) {
if (checked) {
nodes.getNode(i).check();
}
else {
nodes.getNode(i).set_checked(false);
}
if (nodes.getNode(i).get_nodes().get_count() > 0) {
UpdateAllChildren(nodes.getNode(i).get_nodes(), checked);
}
}
};
function UnCheckMultiCountriesCheckAll(sender, eventArgs) {
if (eventArgs.get_node().get_checked()) {
document.getElementById('<%=chkCheckUncheckMultiCountries.ClientID%>').checked = false;
}
};
</script>
<style type="text/css">
/* -- Style for animated loading.gif for radwindows used here b/c of issues with animaged gif in embedded styles */ div.RadWindow_GIRadWindow td.rwLoading {
background: #fff url('../Skins/GIRadWindow/GIRadWindow/Window/loading.gif') no-repeat center !important;
}
div.RadWindow_GIRadWindow td.rwStatusbar .rwLoading {
background-image: url('../Skins/GIRadWindow/GIRadWindow/Window/loading.gif') !important;
background-repeat: no-repeat !important;
}
.NoBackgroundOrBorder {
background: none;
border-width: 0px;
}
.rgCommandCell {
background-image: none;
background-color: White;
border-color: White;
border: 0px;
}
.rgCommandRow {
background-image: none;
background-color: White;
border-color: White;
}
.rgCommandRow, .rgCommandCell {
border-top-color: #9db6c5 !important;
border-bottom: 0px !important;
border-left: 0px !important;
border-right: 0px !important;
}
</style>
</asp:Content>
<asp:Content ID="FormContentPlace" ContentPlaceHolderID="FormContentPlaceHolder"
runat="server">
<script src="<%= Aon.GreaterInsight.WebUI.VersionControl.GetVersion("../Scripts/RadCheckbox.js") %>" type="text/javascript"></script>
<script src="<%= Aon.GreaterInsight.WebUI.VersionControl.GetVersion("../Scripts/Plan.js") %>" type="text/javascript"></script>
<script src="<%= Aon.GreaterInsight.WebUI.VersionControl.GetVersion("../Scripts/Locator.js") %>" type="text/javascript"></script>
<asp:Table Width="50%" align="left" runat="server">
<asp:TableRow runat="server">
<asp:TableCell runat="server">
<asp:Table border="0" runat="server">
<asp:TableRow runat="server">
<asp:TableCell colspan="2" runat="server">
<asp:ValidationSummary ID="ValidationSummaryControl" runat="server" CssClass="Error" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow runat="server">
<asp:TableCell valign="top" runat="server">
<asp:Table CellPadding="4" CellSpacing="2" ID="EntityProperties" border="0" runat="server">
<asp:TableRow runat="server">
<asp:TableCell class="Label" Width="87px" runat="server">
<gi:TranslationLabel runat="server" Text="Name" LabelID="Name" ID="NameLabel" IsRequired="true"
CssClass="Label"></gi:TranslationLabel>
</asp:TableCell>
<asp:TableCell colspan="2" runat="server">
<telerik:RadTextBox ID="txtName" runat="server" Skin="Office2007" CssClass="InputBox" Width="250px" MaxLength="256" />
<gi:TranslationValidator ID="CustomValidator1" runat="server" LabelID="NameValidation"
EnableClientScript="false" ControlToValidate="txtName" Display="Dynamic" ErrorMessage="Name is required."
OnServerValidate="ValidateNotEmpty" ValidateEmptyText="True" CssClass="Error"> *</gi:TranslationValidator>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow valign="top" runat="server">
<asp:TableCell class="Label" runat="server">
<gi:TranslationLabel runat="server" Text="Description" LabelID="Description" ID="DescriptionLabel"
CssClass="Label"></gi:TranslationLabel>
</asp:TableCell>
<asp:TableCell colspan="2" runat="server">
<telerik:RadTextBox ID="txtDescription" Height="50" Width="250px" runat="server"
Skin="Office2007" CssClass="InputBox" TextMode="MultiLine" MaxLength="1024" />
</asp:TableCell>
</asp:TableRow>
<asp:TableRow runat="server">
<asp:TableCell class="Label" runat="server">
<gi:TranslationLabel runat="server" Text="Owner" LabelID="Owner" ID="OwnerLabel"
IsRequired="true" CssClass="Label"></gi:TranslationLabel>
</asp:TableCell>
<asp:TableCell colspan="2" runat="server">
<telerik:RadTextBox ID="txtOwnerSelection" runat="server" Skin="Office2007" Width="250px"
ReadOnly="true">
</telerik:RadTextBox><asp:ImageButton ID="lookupimg" runat="server" ImageUrl="../Images/lookup2.gif"
ImageAlign="AbsMiddle" />
<gi:TranslationValidator ID="OwnerValidator" runat="server" LabelID="OwnerValidation"
EnableClientScript="false" ControlToValidate="txtOwnerRecordID" Display="Dynamic"
ErrorMessage="Owner is required." OnServerValidate="ValidateOwnerNotEmpty" ValidateEmptyText="True"
CssClass="Error"> *</gi:TranslationValidator>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow runat="server">
<asp:TableCell class="Label" runat="server">
<gi:TranslationLabel runat="server" Text="Country" LabelID="Country" ID="CountryLabel"
IsRequired="true" CssClass="Label" Width="72px"></gi:TranslationLabel>
</asp:TableCell>
<asp:TableCell runat="server">
<telerik:RadComboBox ID="cbGeographicUnit" runat="server" Skin="Office2009" AutoPostBack="True"
EnableEmbeddedSkins="false" Width="250px" EnableViewState="true">
</telerik:RadComboBox>
<gi:TranslationValidator ID="CustomValidator4" runat="server" LabelID="CountryValidation"
EnableClientScript="false" ControlToValidate="cbGeographicUnit" Display="Dynamic"
ErrorMessage="Country is required." OnServerValidate="ValidateNotEmpty" ValidateEmptyText="True"
CssClass="Error"> *</gi:TranslationValidator>
<gi:TranslationValidator ID="CustomValidator5" runat="server" LabelID="ValidateRelatedPlanCountry"
EnableClientScript="false" Display="Dynamic"
ErrorMessage="You cannot change country as plan is related to another plan. You must delete all relationship before updating the country." OnServerValidate="ValidateRelatedPlanCountry" ValidateEmptyText="false"
CssClass="Error"> *</gi:TranslationValidator>
</asp:TableCell>
<asp:TableCell runat="server">
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
<triggers>
<asp:AsyncPostBackTrigger ControlID="cbGeographicUnit" EventName="SelectedIndexChanged" />
</triggers>
<contenttemplate>
<img id="flag" runat="server" src="" alt="" style="float: right; margin-left: 2px" />
</contenttemplate>
</asp:UpdatePanel>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow runat="server">
<asp:TableCell colspan="3" align="left" valign="top" runat="server">
<asp:Panel ID="pnlMultiCountry" Visible="false" runat="server">
<asp:Table ID="Table1" CellPadding="0" CellSpacing="0" border="0" runat="server">
<asp:TableRow runat="server">
<asp:TableCell class="Label" valign="top" Width="94px" runat="server">
<gi:TranslationLabel runat="server" Text="Multi Country Plan" LabelID="Multi Country Plan"
ID="lblMultiCountry" CssClass="Label"></gi:TranslationLabel>
</asp:TableCell>
<asp:TableCell valign="top" align="left" colspan="2" runat="server">
<asp:CheckBox ID="chkMultiCountry" runat="server" AutoPostBack="True" />
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:Panel>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow runat="server">
<asp:TableCell colspan="2" runat="server">
<asp:UpdatePanel ID="RelatedPlansUpdatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<asp:Table CellPadding="4" CellSpacing="2" border="0" runat="server">
<asp:TableRow runat="server">
<asp:TableCell class="Label" valign="top" runat="server">
<gi:TranslationLabel runat="server" Text="Related Plans" LabelID="Related Plans"
ID="RelatedPlansLabel" IsRequired="false" CssClass="Label"></gi:TranslationLabel>
</asp:TableCell>
<asp:TableCell runat="server">
<telerik:RadTreeView ID="tvRelatedPlans" runat="server" Skin="Office2009" AllowNodeEditing="false"
CheckBoxes="true" MultipleSelect="false" CollapseAnimation-Type="OutQuint" EnableEmbeddedSkins="false"
TriStateCheckBoxes="true" CheckChildNodes="true">
</telerik:RadTreeView>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</ContentTemplate>
</asp:UpdatePanel>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow runat="server">
<asp:TableCell valign="top" align="left" colspan="2" runat="server">
<asp:UpdatePanel runat="server" ID="updPnlMultiCountries" UpdateMode="Conditional">
<Triggers>
<asp:AsyncPostBackTrigger ControlID="chkMultiCountry" EventName="CheckedChanged" />
<asp:AsyncPostBackTrigger ControlID="cbGeographicUnit" EventName="SelectedIndexChanged" />
</Triggers>
<ContentTemplate>
<asp:Panel runat="server" ID="pnlMultiCountries">
<gi:TranslationLabel runat="server" Text="Geographic Units" LabelID="Geographic Units"
ID="lblAddtCountries" CssClass="Label"></gi:TranslationLabel>
<gi:TranslationValidator ID="MultiCountryValidator" runat="server" LabelID="MultiCountryValidation"
EnableClientScript="false" ControlToValidate="tvMultiCountries" Display="Dynamic"
ErrorMessage="Please select at least one additional country." OnServerValidate="ValidateMultiCountry"
ValidateEmptyText="True" CssClass="Error">*</gi:TranslationValidator>
<gi:TranslationValidator ID="CountryGUValidator" runat="server" LabelID="CountryGUValidation"
EnableClientScript="false" ControlToValidate="tvMultiCountries" Display="Dynamic"
ErrorMessage="Please select at least one geographic unit for the selected country." OnServerValidate="ValidateSelectedCountry"
ValidateEmptyText="True" CssClass="Error">*</gi:TranslationValidator>
<gi:TranslationValidator ID="LegalEntityValidator" runat="server" LabelID="LegalEntityValidator"
EnableClientScript="false" ControlToValidate="tvMultiCountries" Display="Dynamic"
ErrorMessage="Please select at least one Legal Entity / Subsidiary for the selected country." OnServerValidate="ValidateSelectedLegalEntity"
ValidateEmptyText="True" CssClass="Error">*</gi:TranslationValidator>
<asp:CheckBox runat="server" ID="chkCheckUncheckMultiCountries" onclick='handleMultiCountriesClick(this.checked);' />
<gi:TranslationLabel runat="server" Text="Check/Uncheck All" LabelID="Check/Uncheck All" ID="lblCheckUncheckAllCountries" class="Label LeftMarginedLabel" />
<telerik:RadTreeView ID="tvMultiCountries" runat="server" Skin="Office2009" AllowNodeEditing="false"
CheckBoxes="true" MultipleSelect="false" CollapseAnimation-Type="OutQuint" EnableEmbeddedSkins="false"
TriStateCheckBoxes="true" CheckChildNodes="true" OnClientNodeChecking="UnCheckMultiCountriesCheckAll">
</telerik:RadTreeView>
</asp:Panel>
</ContentTemplate>
</asp:UpdatePanel>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<asp:Table Width="40%" align="left" Style="overflow: hidden;" runat="server">
<asp:TableRow runat="server">
<asp:TableCell valign="top" runat="server">
<asp:Table CellPadding="4" CellSpacing="2" ID="Table2" border="0" runat="server">
<asp:TableRow runat="server">
<asp:TableCell colspan="2" runat="server">
</asp:TableCell>
</asp:TableRow>
<asp:TableRow runat="server">
<asp:TableCell colspan="2" runat="server" BorderStyle="Solid" BorderWidth="1" BorderColor="#9db6c5" BackColor="White">
<telerik:RadAjaxManager ID="RadAjaxManager2" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="RadGridTemplate">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="RadGridTemplate" LoadingPanelID="RadAjaxLoadingPanel1" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManager>
<telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server" AnimationDuration="250" />
<telerik:RadGrid ID="RadGridTemplate" runat="server" Width="100%" OnItemDataBound="RadGridTemplate_ItemDataBound"
OnItemCommand="RadGridTemplate_ItemCommand" Skin="Vista2009" EnableEmbeddedSkins="false" EnableEmbeddedBaseStylesheet="false">
<CommandItemStyle CssClass="RadGrid_Vista2009 NoBackgroundOrBorder" BorderWidth="0" />
<MasterTableView AutoGenerateColumns="False" CommandItemDisplay="bottom" AllowAutomaticInserts="false"
AllowAutomaticUpdates="false" CommandItemSettings-ShowRefreshButton="false">
<CommandItemTemplate>
<table style="border: 0px; font: 11px/14px tahoma,arial,sans-serif,'segoe ui'" width="100%">
<tr style="background-image: none">
<td align="right">
<asp:Button ID="btnAddTemplate" runat="server" CommandName="InitInsert" Text="+" /></td>
</tr>
</table>
</CommandItemTemplate>
<Columns>
<telerik:GridTemplateColumn HeaderText="Template">
<ItemTemplate>
<asp:HiddenField ID="KeyValue" runat="server" />
<asp:HiddenField ID="DBKeyValue" runat="server" />
<telerik:RadComboBox MarkFirstMatch="true" ID="cbTemplate" runat="server" Skin="Office2009" EnableEmbeddedSkins="false" Width="250px" />
<gi:TranslationValidator ID="CustomValidator3" runat="server" LabelID="TemplateValidation"
EnableClientScript="false" ControlToValidate="cbTemplate" Display="Dynamic" ErrorMessage="Template is required."
OnServerValidate="ValidateNotEmpty" ValidateEmptyText="True" CssClass="Error"> *</gi:TranslationValidator>
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn HeaderText="Suffix">
<ItemTemplate>
<telerik:RadTextBox runat="server" ID="txtShortCode" MaxLength="10" Width="50px" Font-Size="11px" Height="20px" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<telerik:GridTemplateColumn UniqueName="DeleteColumn">
<ItemTemplate>
<asp:ImageButton ID="btnDelete" ImageUrl="../Images/toolbar/delete.gif" runat="server" CommandName="Delete" ToolTip="Remove" />
</ItemTemplate>
</telerik:GridTemplateColumn>
<%-- <telerik:GridButtonColumn
ConfirmDialogHeight="50px" ConfirmDialogWidth="250px" ConfirmTitle="Remove" ButtonType="ImageButton"
CommandName="Delete" UniqueName="DeleteColumn" ImageUrl="../Images/toolbar/delete.gif">
<ItemStyle HorizontalAlign="Center" ForeColor="Red" />
</telerik:GridButtonColumn>--%>
</Columns>
<EditFormSettings FormStyle-Height="0px" FormStyle-BorderStyle="None" EditColumn-InsertText=""
EditColumn-CancelText="">
</EditFormSettings>
</MasterTableView>
</telerik:RadGrid>
</asp:TableCell>
</asp:TableRow>
<asp:TableRow ID="BuRow" runat="server">
<asp:TableCell runat="server">
<asp:Table runat="server">
<asp:TableRow runat="server">
<asp:TableCell class="Label" valign="top" runat="server">
<gi:TranslationLabel runat="server" Text="Business Unit" LabelID="Business Unit"
ID="BusinessUnitLabel" IsRequired="true" CssClass="Label"></gi:TranslationLabel>
</asp:TableCell>
<asp:TableCell runat="server">
<telerik:RadTreeView ID="tvBusinessUnit" runat="server" Skin="Office2009" AllowNodeEditing="false"
CheckBoxes="true" MultipleSelect="false" CollapseAnimation-Type="OutQuint" EnableEmbeddedSkins="false"
TriStateCheckBoxes="true" CheckChildNodes="true">
</telerik:RadTreeView>
<gi:TranslationValidator ID="BusinessUnitValidator" runat="server" LabelID="BusinessUnitValidation"
EnableClientScript="false" ControlToValidate="tvBusinessUnit" Display="Dynamic"
ErrorMessage="Business Unit is required." OnServerValidate="ValidateBUNotEmpty"
ValidateEmptyText="True" CssClass="Error"> *</gi:TranslationValidator>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
</asp:TableCell>
</asp:TableRow>
</asp:Table>
<asp:HiddenField ID="currentBusinessUnits" runat="server" Value="" />
<asp:HiddenField ID="currentGeographicUnits" runat="server" Value="" />
<gi:TranslationValidator ID="BusinessGeographicUnitValidator" runat="server" LabelID="BusinessGeographicUnitValidation"
EnableClientScript="false" Display="None" ErrorMessage="One or more Business Units and\or Additional Countries are selected for Financials and\or Claims and\or Accounting and can not be removed. You must remove them first from the Financials\Claims\Accounting section."
OnServerValidate="ValidateBusinessGeographicUnits" CssClass="Error"></gi:TranslationValidator>
<telerik:RadWindowManager ID="RadWindowManager1" runat="server" ShowContentDuringLoad="false"
VisibleStatusbar="false" ReloadOnShow="true" Skin="GIRadWindow" EnableEmbeddedBaseStylesheet="false"
EnableEmbeddedSkins="false" Modal="true">
<Windows>
<telerik:RadWindow runat="server" ID="Window1" Width="600" Height="450" Behaviors="Close"
Title="Search">
</telerik:RadWindow>
</Windows>
</telerik:RadWindowManager>
<telerik:RadTextBox ID="txtOwnerRecordID" CssClass="noflicker" Width="0" runat="server" AutoPostBack="false" />
</asp:Content>
CodeBehind aspx.vb file
Private Sub LoadComboBoxes()
Using sql As New Aon.GreaterInsight.Common.Util.SqlUtils()
Dim dtGeoUnit As DataTable
dtGeoUnit = sql.ExecuteDataTable("form.GetCountryByTenantIdSecurityPersonalization", System.Data.CommandType.StoredProcedure, New Dictionary(Of String, String) From {
{SpParameter.Tenant_RecordID, Convert.ToString(UserContext.TenantId)},
{SpParameter.Language_RecordID, Convert.ToString(UserContext.Language_RecordID)},
{SpParameter.User_RecordId, Convert.ToString(UserContext.UserId)}})
cbGeographicUnit.DataSource = dtGeoUnit
'cbGeographicUnit.DataSource = q2.ToList
cbGeographicUnit.DataTextField = "Name"
cbGeographicUnit.DataValueField = "RecordID"
cbGeographicUnit.DataBind()
cbGeographicUnit.Items.Insert(0, New Telerik.Web.UI.RadComboBoxItem("", ""))
Dim multiCountry As Boolean
multiCountry = sql.ExecuteScalar(SpNames.Form.GetIsMultiCountryPlanByAppId, CommandType.StoredProcedure, New Dictionary(Of String, String) From {
{SpParameter.ApplicationProfile_RecordID, Convert.ToString(UserContext.ApplicationProfile_RecordID)}})
If Not multiCountry Then
lblAddtCountries.Visible = False
End If
End Using
End Sub