Sharepoint DateTimeControl Minute increment by 15 minutes, default is 5 minutes

Unanswered Sharepoint DateTimeControl Minute increment by 15 minutes, default is 5 minutes

All Replies

  • Friday, May 11, 2012 1:27 PM
    Moderator
     
     

    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.

    http://social.technet.microsoft.com/Forums/en-US/sharepoint2010customization/thread/36f38e1b-6402-4c68-b2e5-45a53b0de192


    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 PM
    Moderator
     
     

    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


  • 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