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

[Solved] How to stop double loading issue (happens in telerik demos too)

1 Answer 173 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
ewart
Top achievements
Rank 1
ewart asked on 10 Apr 2008, 01:33 AM
Hiya, I am following the External Edit in RadWindow example here and have been trying to figure out whats wrong with my code.  When I double click an appointment to edit it, about 50% of the time it calls the RadWindow twice for some reason.  Only seems to happen from Day view and Week view modes, but not month view. 

After a while I decided to re-check the demo (normally a good way to see where I screwed up :)) and found it exhibits the same behaviour.

this being the output from fiddler from a single click:

GET /demos/aspnet/prometheus-futures/Scheduler/Examples/RadWindow/AdvancedFormCS.aspx?Mode=Edit&AppointmentId=15&rwndrnd=0.31608744380786535 HTTP/1.1

GET /demos/aspnet/prometheus-futures/Scheduler/Examples/RadWindow/AdvancedFormCS.aspx?Mode=Edit&AppointmentId=15&rwndrnd=0.37927669538742825 HTTP/1.1

I installer fiddler on a second env with IE7 and has same result as IE6.

I found this thread suggesting ReloadOnShow could be the issue and indeed setting it to false appears to solve the double load however if the example injects a RadWindow.Close() into a ScriptPlaceholder (as it does upon save), the next time you click the appointment, it reloads the cached one which immediately closes!

how can I solve this?  ideally I'd keep the benefit of ReloadOnShow=false which seems to very nicely load cached pages, but then how to close the RadWindow?

totally stumped!

regards
ewart

1 Answer, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 15 Apr 2008, 11:36 AM
Hi ewart,

When ReloadOnShow is set to false, you should not experience the problem that you report - window closes on a second opening.
Can you please open a support ticket and send us a small sample project where this behavior can be reproduced? I am asking you this because we are not able to reproduce the problem locally or on our site and we will need to have a better view over your exact setup.



Regards,
Georgi Tunev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
ewart
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Share this question
or