if(j.href.indexOf("&ie7CacheFix")>=0){j.href=j.href.replace("&ie7CacheFix","")
(from line 512 of the Telerik.Web.UI.WebResource auto-generated file -- Telerik.Web.UI.WebResource_#.axd -- where # is a random number).
This does not occur when running in Firefox and did not occur prior to installing Q2 2009 SP1.
Has anyone else come across this error and, if so, what did you do to fix it? Telerik -- do you know whether this is a known issue?
(I searched the web for a solution and think this may be related to IE reloading background images on the page in question. Since this doesn't occur in Firefox, it may be related, but I'm not positive.)
27 Answers, 1 is accepted
We have not received any reports of such problems. Can you provide more details about the particular scenario? Providing a live url where we can observe the issue might also help.
Sincerely yours,
Pavel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
The problem is that RadAjaxManager is set to update the RadAjaxPanel in certain situations and the RadTreeView throw the error.
When RadAjaxPanel has EnableAjax="false" the error does not occur anymore, but I need EnableAjax="true" for the panel.
if(j.href.indexOf("&ie7CacheFix")>=0){j.href=j.href.replace("&ie7CacheFix","")
When the error occurs, the RadComboBox does not have a skin and it says "select" where the drop down arrow should be. Sometimes the user could use the application for 10 minutes without error (and the skin displays correctly), and other times the error occurs immediately.
I'm stumped on this one.
In my case the scheduler is on a user control encased in a webpart , using the xmlprovider, and wrapped in a MS Update Panel.
Can someone please elaborate on the exact scenario causing the error (providing markup/code is always welcome). As stated previously opening a support ticket and sending a runnable sample is also an option which will help us track the issue faster.
All the best,
Pavel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
| <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server"> |
| <script type="text/javascript"> |
| function RemindersShowInsertForm() { |
| var oWindow = window.radopen("App_Controls/Reminders/ReminderInsert.aspx?Action=Insert", null); |
| oWindow.setSize(500, 450); |
| oWindow.set_behaviors(Telerik.Web.UI.WindowBehaviors.Close); |
| oWindow.center(); |
| } |
| function RemindersSetSelectedEdit(ID, rowIndex) { |
| var masterTable = $find("<%=gReminders.ClientID%>").get_masterTableView(); |
| var dataItem = masterTable.get_dataItems()[rowIndex]; |
| dataItem.set_selected(true); |
| masterTable.editSelectedItems(); |
| } |
| function RemindersSaveEdit() { |
| var masterTable = $find("<%= gReminders.ClientID %>").get_masterTableView(); |
| masterTable.updateEditedItems(); |
| } |
| function RemindersCancelUpdate(ID, rowIndex) { |
| var masterTable = $find("<%= gReminders.ClientID %>").get_masterTableView(); |
| masterTable.cancelUpdate(masterTable.get_dataItems()[rowIndex].get_element()); |
| } |
| function RemindersShowDeleteForm(ID, rowIndex) { |
| radconfirm('Are you sure you want to delete the Reminder: ' + ID, confirmCallBackFn, 400, 100, null, 'Delete'); |
| function confirmCallBackFn(arg) { |
| if (arg == true) { |
| debugger; |
| $find("<%= gReminders.ClientID %>").get_masterTableView().deleteItem(rowIndex); |
| } |
| } |
| return false; |
| } |
| function RemindersinsertError(arg) { |
| var message; |
| if (arg == 'Duplicate') { |
| message = "A duplicate record was found."; |
| } |
| if (arg == 'Error') { |
| message = 'There was an error inserting the record.'; |
| } |
| radalert(message, 450, 210); |
| } |
| function RemindersrefreshGrid(arg) { |
| if (!arg) { |
| $find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest("RebindReminders"); |
| } |
| } |
| function RemindersExport(arg) { |
| $find("<%= RadAjaxPanel1.ClientID %>").ajaxRequest("export"); |
| } |
| function RequestStart(ajaxPanel, eventArgs) { |
| if (eventArgs.EventArgument == "export") { |
| eventArgs.EnableAjax = false; |
| } |
| } |
| </script> |
| </telerik:RadCodeBlock> |
| <telerik:RadAjaxPanel ID="RadAjaxPanel1" runat="server" EnableAJAX="false" OnAjaxRequest="_radAjaxManager_AjaxRequest"> |
| <telerik:RadGrid ID="gReminders" runat="server" AutoGenerateColumns="False" GridLines="None" |
| OnNeedDataSource="gReminders_NeedDataSource" OnItemCreated="gReminders_ItemCreated" |
| OnDeleteCommand="gReminders_DeleteCommand" |
| OnUpdateCommand="gReminders_UpdateCommand" onitemdatabound="gReminders_ItemDataBound" |
| > |
| <ClientSettings EnablePostBackOnRowClick="True"> |
| <Selecting AllowRowSelect="True" /> |
| </ClientSettings> |
| <MasterTableView CommandItemDisplay="Top" EditMode="InPlace" DataKeyNames="Name" > |
| <RowIndicatorColumn> |
| <HeaderStyle Width="20px" /> |
| </RowIndicatorColumn> |
| <ExpandCollapseColumn> |
| <HeaderStyle Width="20px" /> |
| </ExpandCollapseColumn> |
| <Columns> |
| <telerik:GridTemplateColumn UniqueName="TemplateEditColumn" AllowFiltering="false"> |
| <ItemTemplate> |
| <asp:HyperLink ID="EditLink" runat="server" Text="Edit" ToolTip="Edit" ImageUrl="~/images/Edit.gif"></asp:HyperLink> |
| <asp:HyperLink ID="DeleteLink" runat="server" Text="Delete" ToolTip="Delete" ImageUrl="~/images/Delete.gif"></asp:HyperLink> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <asp:HyperLink ID="SaveLink" runat="server" Text="Save" ToolTip="Save" ImageUrl="~/images/Update.gif"></asp:HyperLink> |
| <asp:HyperLink ID="CancelLink" runat="server" Text="Cancel" ToolTip="Cancel" ImageUrl="~/images/Cancel.gif"></asp:HyperLink> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridBoundColumn HeaderText="UID" UniqueName="UID" DataField="UID" Visible="false" DataType="System.Guid"> |
| </telerik:GridBoundColumn> |
| <telerik:GridBoundColumn HeaderText="Name" UniqueName="Name" DataField="Name" Visible="false"> |
| </telerik:GridBoundColumn> |
| <app:StatusFilteringColumn DataField="Status" HeaderText="Status" SortExpression="Status" |
| UniqueName="Status" Visible="true"> |
| <EditItemTemplate> |
| <asp:DropDownList ID="cbStatus" runat="server"> |
| </asp:DropDownList> |
| <asp:Label ID="lblStatus" Visible="false" runat="server" Text='<%# Eval("Status") %>'></asp:Label> |
| </EditItemTemplate> |
| <ItemTemplate> |
| <asp:Label ID="lblStatus" runat="server" Text='<%# Eval("Status") %>'></asp:Label> |
| </ItemTemplate> |
| </app:StatusFilteringColumn> |
| <telerik:GridTemplateColumn HeaderText="Description" UniqueName="Description" DataField="Description" |
| Visible="true"> |
| <ItemTemplate> |
| <asp:Label ID="lblDescription" runat="server" Text='<%# Eval("Description") %>'></asp:Label> |
| </ItemTemplate> |
| <EditItemTemplate> |
| <telerik:RadTextBox ID="tbDescription" runat="server" Text='<%# Eval("Description") %>'></telerik:RadTextBox> |
| <asp:Label ID="lblDescription" Visible="false" runat="server" Text='<%# Eval("Description") %>'></asp:Label> |
| </EditItemTemplate> |
| </telerik:GridTemplateColumn> |
| <telerik:GridDateTimeColumn HeaderText="Due By" PickerType="DateTimePicker" UniqueName="Due" DataField="Due" DataType="System.DateTime"> |
| </telerik:GridDateTimeColumn> |
| </Columns> |
| <CommandItemTemplate> |
| <div> |
| <span style="float: left; vertical-align: middle;"> |
| <asp:Image ID="AddRecord1" runat="server" AlternateText="Add Record" ImageUrl="~/images/AddRecord.gif" /> |
| <a href="#" onclick="return RemindersShowInsertForm('Reminders');">Add Reminder</a></span> |
| <span style="float: right;"> |
| <table style="border: none;"> |
| <tr> |
| <td style="width: 80px;"> |
| <asp:DropDownList ID="_comboExport" runat="server"> |
| <asp:ListItem Text="Excel" Value="excel" Selected="true" /> |
| <asp:ListItem Text="Word" Value="word" /> |
| <asp:ListItem Text="PDF" Value="pdf" /> |
| </asp:DropDownList> |
| <td style="width: 80px;"> |
| <input id="_buttonExport" type="button" value="Export" onclick="return Export('Reminders');" /> |
| </td> |
| </tr> |
| </table> |
| </span> |
| </div> |
| </CommandItemTemplate> |
| </MasterTableView> |
| </telerik:RadGrid> |
| </telerik:RadAjaxPanel> |
The context menu within the tree causes this error to occur. If I remove the context menu it doesn't occur at all.
I am afraid that the provided information is still not sufficient for us to replicate the error. Please open a support ticket and attach to it a runnable sample website which illustrates the behavior.
Regards,
Pavel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
After I removed the problematic context menu, the problem went away briefly. I've since added raddocks to the usercontrol and the problem returned. My head hurts on this one.
Unfortunately no. And as yet, I've been unable to re-create the exception within an isolated project for sending to Telerik for examination. It must have to do with some of the client script I've removed in order to send the solution to Telerik.
I emplore anyone having this problem, please try to recreate it in a solution that can be sent to Telerik for examination. The more of us that get on this one, the more quickly it can be resolved.
I'm glad others are experiencing this, although I wish Telerik were able to replicate it as well. Until we come up with an identifiable issue, we'll be whistling in the dark.
I have discovered (and I should have guessed from the start considering the script error displayed) that this error is in relation to Custom Skins within our project.
Once I remove the Theme property from the Page element in the web.config, which removes the theme containing all custom skins, the problem goes away.
The code seems to want to alter the autogenerated LINK elements in the style class Telerik_stylesheet. removing &ie7CacheFix portion and replacing it with string.empty, which is apparently an unwelcome value.
Any insight from Telerik?
We implemented a Theme with a single skin file. Within the skin file was defined (initially) each RadControl we made use of, EmbeddedSkins where set to false and a Skin was assigned from the App_Themes folder.
It appears, unfortunately, that our list of used RadControls in the application grew (specifically causing the problem I think the RadDateTimePicker), but our skin file did not define some of the additional controls we had begun to make use of. I went through and specifically defined each and every Rad Control in the skin file and the problem disappeared.
Hi
I had the same problem.
I am using several rad controls on my page and the RadEditor loads as the last control.
I tried to solve the problem by using skin thanks to Dougs advise.
Accidently I sat the EnableAjaxSkinRendering to false and the problem disappeared.
I then removed the skin and it still works
If you could email it to me, I would really appreciate it. Here's my email address: sisayev@spisoftwaresolutions.net. Or you can attach it to the forum posting. The intermittent nature of this problem has been driving me crazy. I haven't been able to isolate it in a separate project either. THanks a whole lot in advance.
But I believe this is the solution
The value of href is
"/WebResource.axd?d=91oH34zN0iY_rhxsy9FTx3hDCktY3-dsyyLE3G_Ogwb6NJkU0PpAbW18Wbds2HZa0&t=633894727840000000&ie7CacheFix"
The original line fails with the error we all know and love, that is the subject of the message
if
(j.href.indexOf("&ie7CacheFix")>=0){j.href=j.href.replace("&ie7CacheFix","")
The solution would be if the line said (correction in bold)
if(j.href.indexOf("&ie7CacheFix")>=0){j.href.value=j.href.replace("&ie7CacheFix","")
That sets href to equal
"/WebResource.axd?d=91oH34zN0iY_rhxsy9FTx3hDCktY3-dsyyLE3G_Ogwb6NJkU0PpAbW18Wbds2HZa0&t=633894727840000000"
Which is what I believe the intent of the line was in the first place.
Any chance this solution can make it in Q3 (assuming it passes your internal testing)?
Thanks in advance.
Can you try the Q3 release and let us know if you still observe the issue?
Greetings,
Pavel
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
I tend to think that this is/was a skin issue because it only started in my project after I had changed to another skin.