Sharepoint DateTimeControl Minute increment by 15 minutes, default is 5 minutes
-
Friday, May 11, 2012 12:58 PM
Hi,
Can some one guide me how I can change the basic functionality of the DateTimeControl, so the minute can get increment by 15 minute by default is 5 minute.
Any code sample is a great help.
I looked into these 2 forum, but still not sure how I can implement this?
Thank you so much for your help.
ARUN
All Replies
-
Friday, May 11, 2012 1:27 PMModerator
Hi
That 5 minute interval is hardcoded into the control and can't be changed. The only option I can think of is to create your own custom control based on this one and override the required field settings.
Regards Bjoern
Blog -
Friday, May 11, 2012 1:49 PM
Hi,
Do you mind to guide me to get some simple code to achieve this?
regards,
ARUN
-
Friday, May 11, 2012 2:07 PMModerator
There's a codeplex project here that does something similar, at least it should give you some guidelines although it was created for Sharepoint 2007.
Here's another description on overriding custom control templates.
Regards Bjoern
Blog- Edited by Bjoern H RappMicrosoft Community Contributor, Moderator Friday, May 11, 2012 2:08 PM
-
Monday, May 14, 2012 2:28 PM
Hi,
I found one project in code plex is very close to my requirement.
http://datetimebyminute.codeplex.com/workitem/list/basic
But unable to perform the required step because of these-
1- I downloaded the code and when I am trying to open in VS 2010, I am getting
the message this Project canot load.2- I installed the solution as a farm solution because I cannot deploy as a
sandbox solution, but when I am going to change the Minute in the
DateTimeByMinuteFieldTemplate.AXCS page, I am unable to save my change back and
gettign the access denied.Can some one guide me on this-
1- How I can make change in the Minute and save back to this location
C:\Program Files\Common Files\Microsoft Shared\Web Server
Extensions\14\TEMPLATE\CONTROLTEMPLATES again.2- How I can use this in my project.
Thank you so much for your help.
ARUN

