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

Urgent. DatePicker SpecialDay Time Issue

5 Answers 42 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
shunman
Top achievements
Rank 1
shunman asked on 29 Jul 2015, 07:19 AM

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>

5 Answers, 1 is accepted

Sort by
0
shunman
Top achievements
Rank 1
answered on 29 Jul 2015, 07:21 AM
I'm attaching my evidence screenshot.
0
Maria Ilieva
Telerik team
answered on 31 Jul 2015, 01:44 PM
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
0
shunman
Top achievements
Rank 1
answered on 04 Aug 2015, 01:45 AM

Hello Maria IIieva.

That property does not help. Still same problem.

0
shunman
Top achievements
Rank 1
answered on 06 Aug 2015, 12:15 AM

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.

0
Maria Ilieva
Telerik team
answered on 06 Aug 2015, 09:16 AM
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
Tags
DatePicker
Asked by
shunman
Top achievements
Rank 1
Answers by
shunman
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or