Urgent. DatePicker SpecialDay Time Issue

6 posts, 0 answers
  1. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 29 Jul 2015 Link to this post

    Hello Telerik team.

    I'm using Telerik 2014.1.403.40 version.

    It looks  today of speicalday property time is depends on server time.

     My PC location timezone is UTC +09:00 (Seoul)

    and Web Serv timezone is  UTC  -08:00 Pacific Time (US&Canada).

    When I open the Dateopicker popup, today marked 7/28 but actual today is 7/29.

    I would like to set today time correctly.

     Here's my code

    01.<telerik:RadDatePicker ID="RadDatePickerDateFrom" runat="server" Calendar-FastNavigationStep="12" Calendar-ShowRowHeaders="false" Width="100%" TabIndex="12">
    02.    <Calendar ID="CalendarDateFrom" runat="server">
    03.        <FastNavigationSettings EnableTodayButtonSelection="true" />
    04.            <SpecialDays>
    05.                <telerik:RadCalendarDay Repeatable="Today" ItemStyle-BackColor="Yellow" />
    06.            </SpecialDays>
    07.    </Calendar>
    08.    <DateInput AutoCompleteType="Disabled" ID="DateInputDateFrom" runat="server" DateFormat="M/d/yyyy" SelectionOnFocus="SelectAll" />
    09.</telerik:RadDatePicker>

  2. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 29 Jul 2015 in reply to shunman Link to this post

    I'm attaching my evidence screenshot.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 31 Jul 2015 Link to this post

    Hello,

    Can you please try to set EnableRepeatableDaysOnClient property to "true" and see if this helps?

    Regards,
    Maria Ilieva
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
  5. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 03 Aug 2015 in reply to Maria Ilieva Link to this post

    Hello Maria IIieva.

    That property does not help. Still same problem.

  6. shunman
    shunman avatar
    77 posts
    Member since:
    Jul 2011

    Posted 05 Aug 2015 in reply to Maria Ilieva Link to this post

    Hello Maria IIieva.

    I have to solve this  issue more quickly, manually configured to show today special day by server-side code.

    My code works fine I expected.

    DateTime clientTodayDate = DateUtility.GetClientDateTime();
     
    RadCalendarDay today = new RadCalendarDay();
    today.Date = new DateTime(clientTodayDate.Year, clientTodayDate.Month, clientTodayDate.Day);
     
    today.ItemStyle.BackColor = Color.Yellow;
    radDatePicker.Calendar.SpecialDays.Add(today);

    My code has something different your reference code that not specified "Repeatable" property and specified "Date" property to today datetime.  (today datetime received from client-side by some code)

    I think your "Repeatable" = "today" property did not work client-side time well.

    Please check my code for any of potential issue .

     thank you.

  7. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 06 Aug 2015 Link to this post

    Hello Shunman,

    The approach you have implemented look correct and should work properly in your case.

    We will further research locally on the "Repeatable" property to see if any issue appear client side.

    Regards,
    Maria Ilieva
    Telerik
    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 Feedback Portal and vote to affect the priority of the items
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017