DatePicker doesn't select date

7 posts, 0 answers
  1. André Harder
    André Harder avatar
    4 posts
    Member since:
    Nov 2008

    Posted 01 Dec 2016 Link to this post

    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?

     

  2. Anton
    Admin
    Anton avatar
    81 posts

    Posted 05 Dec 2016 Link to this post

    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.
  3. André Harder
    André Harder avatar
    4 posts
    Member since:
    Nov 2008

    Posted 15 Dec 2016 in reply to Anton Link to this post

    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?

  4. Anton
    Admin
    Anton avatar
    81 posts

    Posted 20 Dec 2016 Link to this post

    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.
  5. André Harder
    André Harder avatar
    4 posts
    Member since:
    Nov 2008

    Posted 20 Dec 2016 Link to this post

    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) 
  6. Anton
    Admin
    Anton avatar
    81 posts

    Posted 22 Dec 2016 Link to this post

    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.
  7. André Harder
    André Harder avatar
    4 posts
    Member since:
    Nov 2008

    Posted 23 Dec 2016 Link to this post

    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 :)

Back to Top