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

DatePicker doesn't select date

6 Answers 212 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
André Harder
Top achievements
Rank 1
André Harder asked on 01 Dec 2016, 11:34 AM

Hello,

 

We use the Scheduler control in our Planning-application.  This is all working nicely. However, the small "DatePicker" above the scheduler does not select the date in the Scheduler view.

I have updated the control to the newest version.

Can you please help me fix the problem?

 

6 Answers, 1 is accepted

Sort by
0
Anton
Telerik team
answered on 05 Dec 2016, 08:20 AM
Hello André,

We are not aware of such issue. I attached you a sample website with a RadScheduler. As you can see on the video I'm also using latest verson of the controls and when selecting a date from the date picker the Scheduler goes to that selected date in day view.
In order to run the project please add reference to Telerik.Web.UI.dll and Telerik.Web.UI.Skins.dll.

Regards,
Anton
Telerik by Progress
Telerik UI for ASP.NET AJAX is ready for Visual Studio 2017 RC! Learn more.
0
André Harder
Top achievements
Rank 1
answered on 15 Dec 2016, 11:52 AM

Your example indeed works. But I discovered that the control calls the __doPostBack() function when you select a different date.

Our prorgam uses an Webservice to get the appoinments so we disabled the __doPostBack() event, is there a different way of getting the selected date out of the DatePicker?  This used to work but after updating to 2016.3.1027.45 it stopped working.

Is there a way to fix this?

0
Anton
Telerik team
answered on 20 Dec 2016, 06:58 AM
Hello André,

Indeed if you were inspecting the given example, selecting a date will trigger a post back. However, the provided example is bound to a XML data source, thus working with post backs. If you've bound the Scheduler to a web service it won't do post backs as it's working asynchronously.

Regards,
Anton
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
André Harder
Top achievements
Rank 1
answered on 20 Dec 2016, 10:30 AM
That is correct for almost the entire control, however the DatePicker still tries to do a PostBack and doesn't use the bound Webservice.  (no requests going to the webservice and __doPostBack() is called) 
0
Anton
Telerik team
answered on 22 Dec 2016, 09:15 AM
Hello André,

Please find attached a sample project with a RadScheduler bound to a WebService. As you can see on the video at my side there is no postback occurring when I use the DatePicker.
Would you please use the sample project to reproduce the issue and send us a video with it?

Regards,
Anton
Telerik by Progress
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
André Harder
Top achievements
Rank 1
answered on 23 Dec 2016, 10:24 AM

Hello Anton,

I have finally solved my problem. 

<telerik:RadScheduler runat="server" ID="RadScheduler1" Culture="nl-NL" ClientIDMode="Static"

The ClientIDMode="Static" caused the problem here. So thanks for helping :)

Tags
Scheduler
Asked by
André Harder
Top achievements
Rank 1
Answers by
Anton
Telerik team
André Harder
Top achievements
Rank 1
Share this question
or