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

How to set Datetime format in WeekView-ColumnHeaderDateFormat Property?

3 Answers 113 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Tamilselvan
Top achievements
Rank 1
Tamilselvan asked on 03 Sep 2010, 01:24 PM
Hi ,

    I am using Radscheduler control, How to set Datetime format in WeekView-ColumnHeaderDateFormat Property?.
Like "mm/DD/yyyy" . Please help me.


Regards,
Tamilselvan.S

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 03 Sep 2010, 01:45 PM
Hello,


If you want to set the DateFormat for week DateHeader, then the following code will be helpful for you.

aspx:
<telerik:RadScheduler DataStartField="Start" DataSubjectField="Subject" HoursPanelTimeFormat="t" OverflowBehavior="Expand" ValidationGroup="RadScheduler1">
         <WeekView ColumnHeaderDateFormat="MM/dd/yyyy" ShowDateHeaders="true" />

Could you elaborate the requirement if this is different than what I thought?


-Shinu.
0
Tamilselvan
Top achievements
Rank 1
answered on 03 Sep 2010, 02:33 PM
Hi Shinu,
      I am tried your code its working fine, but i am clicking that date getting error like 'String was not recognized as a valid DateTime' .
Here binding the data through code behind. what is problem occure here, how to solve this problem.

Regards,
Tamiselvan.S
0
Veronica
Telerik team
answered on 03 Sep 2010, 03:25 PM
Hi Tamilselvan,

Yes, Shinu is right.

In addition you can look at the MSDN article for Custom Date and Time Format Strings.

All the best,
Veronica Milcheva
the Telerik team
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 Public Issue Tracking system and vote to affect the priority of the items
Tags
Scheduler
Asked by
Tamilselvan
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Tamilselvan
Top achievements
Rank 1
Veronica
Telerik team
Share this question
or