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

RadDatePicker broken in SP2?

11 Answers 130 Views
Calendar
This is a migrated thread and some comments may be shown as answers.
John Brownell
Top achievements
Rank 1
John Brownell asked on 09 Oct 2008, 04:07 AM
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

11 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 09 Oct 2008, 07:51 AM
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.
0
John Brownell
Top achievements
Rank 1
answered on 09 Oct 2008, 09:34 AM
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
0
John Brownell
Top achievements
Rank 1
answered on 09 Oct 2008, 10:07 AM
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
0
Vlad
Telerik team
answered on 09 Oct 2008, 11:30 AM
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.
0
John Brownell
Top achievements
Rank 1
answered on 09 Oct 2008, 01:27 PM
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
0
Vlad
Telerik team
answered on 09 Oct 2008, 03:21 PM
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.
0
John Brownell
Top achievements
Rank 1
answered on 09 Oct 2008, 03:56 PM
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
0
Vlad
Telerik team
answered on 10 Oct 2008, 05:45 AM
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.
0
John Brownell
Top achievements
Rank 1
answered on 10 Oct 2008, 06:05 PM
Thank you for all of your help... you guys provide great service!

John
Pyron Technologies
0
Mike
Top achievements
Rank 1
answered on 05 Jul 2011, 10:45 AM
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.
0
Sebastian
Telerik team
answered on 05 Jul 2011, 11:08 AM
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.

Tags
Calendar
Asked by
John Brownell
Top achievements
Rank 1
Answers by
Vlad
Telerik team
John Brownell
Top achievements
Rank 1
Mike
Top achievements
Rank 1
Sebastian
Telerik team
Share this question
or