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

RadTimePicker javascript error after postback

4 Answers 69 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
Cantemir Mihu
Top achievements
Rank 1
Cantemir Mihu asked on 31 Mar 2010, 02:24 PM
Hello,

I have 2 RadTimePickers on an custom AdvancedEditTemplate for the Scheduler.
If I first click on the TimeInputButton and after that I do a Postback from inside the AdvancedEditTemplate, I can't click again on the TimeInputButton.
After some debugging, we found out that the _onTimePopupImageClickHandler handler is called twice. The first call succeeds, but the second one fails in getCorrectScrollLeft() from Telerik.Web.CommonScripts because A.document.documentElement is null.

Could you please provide a workaround or some advice for this? Is this a known issue?

Best regards,
Cantemir

4 Answers, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 06 Apr 2010, 02:13 PM
Hello Cantemir,

Can you, please, give us some more details on this. Ideally, some sample code we can examine would be useful. Also, if possible, consider opening a regular support ticket where you can send us some runnable project that we can test locally.



Best wishes,
Veli
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
Cantemir Mihu
Top achievements
Rank 1
answered on 07 Apr 2010, 07:28 AM
Hello,

unfortunately the problem is showing up in a larger project, which I'm not allowed to send.
Additionally, I don't have time to make up a simple project to reproduce this bug.

But I think it should be easy to reproduce: put the 2 controls on the advanced form of the scheduler, open the appointment, click on the time picker and than cause a postback (for instance check the recurrence checkbox to load the recurrence controls). Then click again on the timepicker.

best regards,
Cantemir
0
Peter
Telerik team
answered on 09 Apr 2010, 02:06 PM
Hello Cantemir,

We followed your instructions, but the problem didn't appear in our local test. You can download a sample web site for caustomizing the advanced form from here and use it as reference.


Regards,
Peter
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
Cantemir Mihu
Top achievements
Rank 1
answered on 09 Apr 2010, 06:13 PM
Hello,

just for the record, I found a workaround for this problem.
After every postback, I have to run the following JS code:
Telerik.Web.UI.RadDateTimePicker.TimePopupInstances = {};


I assume this "cache" of popups gets messed up after the postback so that displaying the time popup again fails.

Note: this problem seems to happen only in IE.
Tags
Calendar
Asked by
Cantemir Mihu
Top achievements
Rank 1
Answers by
Veli
Telerik team
Cantemir Mihu
Top achievements
Rank 1
Peter
Telerik team
Share this question
or