This is a migrated thread and some comments may be shown as answers.

Window sometimes loads incorrect content

7 Answers 101 Views
Window
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Derek Hunziker
Top achievements
Rank 1
Derek Hunziker asked on 05 Oct 2010, 04:25 AM
Hi fellas,

I have multiple Windows defined on my page like so:

<% Html.Telerik().Window()
        .Visible(false)
        .Name("MyWindow")
        .Title("My Window")
        .Content(() =>
        { %>
<iframe src="<%= Url.Action("_MyWindow", "mycontroller", new { routeParam = Model.something }) %>" style="width: 100%; height: 100%;" frameborder="0"></iframe>
<% })
        .Draggable(true)
        .Buttons(b => b.Close())
        .Scrollable(false)
        .Width(500)
        .Height(221)
        .Modal(true)
        .Render();
%>

The problem I'm facing is when I open one of the windows, about 5-10% of the time, content from the incorrect window will get loaded. Basically, the content from window "A" gets loaded into window "B". It's nearly impossible to put my finger on what's causing it... it appears to be completely random. Refreshing the page often fixes it, but not always.

Any ideas on what could be causing this? I'm willing to put together an example if necessary.

-Derek
2010.2.825

7 Answers, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 06 Oct 2010, 12:23 PM
Hello Derek,

Does this happen with the service pack? If not, can you please provide the sample project?

Regards,
Alex Gyoshev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Derek Hunziker
Top achievements
Rank 1
answered on 06 Oct 2010, 11:55 PM
YES, I installed the latest service pack and it still happens. Please download the sample solution below to see the error in action. I've included steps to reproduce it on the home page. I hope that you can tell me what's wrong.

Example solution

Thank you,

-Derek
0
Georgi Krustev
Telerik team
answered on 07 Oct 2010, 12:30 PM
Hello Derek,

Thank you for the attached test project.

Unfortunately, I was not able to reproduce the problem locally. Could you please check this screencast, which I made when testing the test application?

Let me know if I am missing something.

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Derek Hunziker
Top achievements
Rank 1
answered on 07 Oct 2010, 09:07 PM
Georgi,

Thanks for taking a look at this.

You seem to be clicking everything in the correct sequence. I'm now thinking this may be a Firefox specific issue. Please see this screencast for my experience with the same exact project (I deleted it and downloaded it from this forum post just to be certain).

Thanks,

-Derek
0
Derek Hunziker
Top achievements
Rank 1
answered on 07 Oct 2010, 09:25 PM
Some more screencast crazyness to check out. Note how the iframe is pointing to the correct URL, but it's contents is incorrect. It's like seeing a ghost!
0
Georgi Krustev
Telerik team
answered on 08 Oct 2010, 05:29 PM
Hello Derek Hunziker,

I was able to reproduce the depicted issue. It seems that I have stopped caching in the browser, which resolve the aforementioned problem.

Unfortunately this seams to be problem related with FF 3+ and the only solution, which I was able to find is explained in this post.

I have modified your test project in order to resolve the depicted issue.

Regards,
Georgi Krustev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
Derek Hunziker
Top achievements
Rank 1
answered on 08 Oct 2010, 10:46 PM
Thanks, that seems to have fixed it.

Best,

-Derek
Tags
Window
Asked by
Derek Hunziker
Top achievements
Rank 1
Answers by
Alex Gyoshev
Telerik team
Derek Hunziker
Top achievements
Rank 1
Georgi Krustev
Telerik team
Share this question
or