RadTimePicker javascript error after postback

5 posts, 0 answers
  1. Cantemir Mihu
    Cantemir Mihu avatar
    5 posts
    Member since:
    Oct 2009

    Posted 31 Mar 2010 Link to this post

    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
  2. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 06 Apr 2010 Link to this post

    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.
  3. Cantemir Mihu
    Cantemir Mihu avatar
    5 posts
    Member since:
    Oct 2009

    Posted 07 Apr 2010 Link to this post

    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
  4. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 09 Apr 2010 Link to this post

    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.
  5. Cantemir Mihu
    Cantemir Mihu avatar
    5 posts
    Member since:
    Oct 2009

    Posted 09 Apr 2010 Link to this post

    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.
Back to Top