RadDatePicker broken in SP2?

12 posts, 0 answers
  1. John Brownell
    John Brownell avatar
    26 posts
    Member since:
    Apr 2007

    Posted 08 Oct 2008 Link to this post

    I recently updated to SP2 (version 2008.2.1001) and found that all of the RadDatePickers in my application stopped working. When I click on a date, the page posts back to the webroot (rather than just filling the dat into the textbox). I have a lot of  datepicker controls in this app and it happens on all of them. When I copy the previous version DLLs back into the bin directory, everything works again, so it must be newly introduced in this version.

    Looking at the version history notes, I saw this:
    Removed onclick="return false;" attribute from calendar cells

    This seems to be likely what is causing this problem. Is there something I need to restore the functionality?

    Thanks,
    John
    Pyron Technologies
  2. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Oct 2008 Link to this post

    Hi John,

    I just checked our online examples however didn't manage to reproduce such behavior. Can you send us an example where we ca reproduce and debug this?

    All the best,
    Vlad
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. John Brownell
    John Brownell avatar
    26 posts
    Member since:
    Apr 2007

    Posted 09 Oct 2008 Link to this post

    You can replicate the problem by using the RadDAtePicker in its default state. Just add one like this:

    <telerik:RadDatePicker ID="RadDatePicker1" runat="server">
    </telerik:RadDatePicker>

    When you select a date from the popup calendar, the entire page posts back. It should just put the date in the text field without a postback. You can confirm this was newly introduced in the SP2 release by copying the previous (826) version DLLs into your bin directory.

    Thanks,
    John
    Pyron Technologies
  4. John Brownell
    John Brownell avatar
    26 posts
    Member since:
    Apr 2007

    Posted 09 Oct 2008 Link to this post

    After some further troubleshooting, I think found the bug... and it is an odd one.

    If you set the RadDatePicker "SelectedDate" to a date within the current month, and then use the calendar popup to pick another date within the same month, then the calendar does a full postback.

    This causes the problem for me right now:
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" SelectedDate="2008-10-01">
    </telerik:RadDatePicker>

    This does not:
    <telerik:RadDatePicker ID="RadDatePicker1" runat="server" SelectedDate="2008-09-01">
    </telerik:RadDatePicker>

    I was able to further comfirm this involves the current month by changing the date on my computer clock to September, and the problem went away for SelectedDates in October, but returned if I set the SelectedDate to September.

    I hope this helps. I have spent waaaay to much time on this and I am going to bed now. Let me know what you figure out.

    Thanks!
    John
    Pyron Technologies
  5. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Oct 2008 Link to this post

    Hello John,

    I just tried this however I'm still unable to reproduce this. Please check the attached example.

    Kind regards,
    Vlad
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. John Brownell
    John Brownell avatar
    26 posts
    Member since:
    Apr 2007

    Posted 09 Oct 2008 Link to this post

    It is definitely happening, even in your example. You may not notice because you have nothing else on the page. Try adding a bunch of <br />s above the calendar so that you have to scroll to it and you'll see what I mean. I also notice that a "#" is added to the URL which should not happen. So after I select a date in October, the page jumps to the top and the URL changes:

    From:
    http://localhost:3052/103044_WebSite/Default.aspx
    To:
    http://localhost:3052/103044_WebSite/Default.aspx#

    I know it sounds crazy, but I have confirmed this on two machines now.

    John
    Pyron Technologies
  7. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 09 Oct 2008 Link to this post

    Hello John,

    Unfortunately you are right. I was able to reproduce this under IE only when you click exactly on the link in the calendar cells. The problem was fixed immediately you can contact the support to receive latest unofficial Telerik.Web.UI build.

    Regards,
    Vlad
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. John Brownell
    John Brownell avatar
    26 posts
    Member since:
    Apr 2007

    Posted 09 Oct 2008 Link to this post

    Thanks Vlad... good to know that I am not crazy.

    Now, considering I spent nearly 6 hours troubleshooting this problem, it's gotta be worth a decent number of Telerik point, eh?

    ;-)

    John
    Pyron Technologies
  9. Vlad
    Admin
    Vlad avatar
    11100 posts

    Posted 10 Oct 2008 Link to this post

    Hi John,

    I have added 2000 Telerik points to your account. Sorry once again for this temporary inconvenience.

    Regards,
    Vlad
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  10. John Brownell
    John Brownell avatar
    26 posts
    Member since:
    Apr 2007

    Posted 10 Oct 2008 Link to this post

    Thank you for all of your help... you guys provide great service!

    John
    Pyron Technologies
  11. Mike
    Mike avatar
    4 posts
    Member since:
    Feb 2009

    Posted 05 Jul 2011 Link to this post

    This is a long shot considering this thread is near three years old, but...

    Is there a work around to this problem that doesn't involve upgrading build version?

    It might seem silly but upgrading version isn't a possibility right now and this problem stops us from being able to use RadDatePickers in RadWindows.
  12. Sebastian
    Admin
    Sebastian avatar
    9934 posts

    Posted 05 Jul 2011 Link to this post

    Hi Mike,

    There is no other means to tackle this issue than migrating to most recent version of the AJAX calendar control. I checked your account and it does not indicate that you purchased our AJAX suite, hence switching to the latest Q1 2011 SP2 should not be a problem for you.

    Regards,
    Sebastian
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top