.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

Default Duration for calendar event

Posted By:      Posted Date: September 20, 2010    Points: 0   Category :SharePoint

Hi everyone,

I'm looking for a way to modify the default event duration for a user who adds items to a sharepoint calendar.  I've found the examples on the internet that use jquery, but none of these appear to work for SP 2010.  It changes the "end time" value, but sharepoint then changes it right back.

I'm fine modifying some values on the back end - I know that somewhere the default time is set in a file, but I have no idea where it is despite my looking.  Apparently SP 2007 had a default duration of 30 minutes, but now 2010 has a default duration of 1 hour.  I'd love to be able to change this.

I'm fine editing the aspx pages, but need some more guidance on what is possible with SP 2010.  I tried adding a content editor webpart, but it kept saying that my code might have been changed (although it doesn't appear to have been).

Thanks for any help!


View Complete Post

More Related Resource Links

How to delete the default columns( All day Event field ) from the Calendar List in sharepoint?



Is there anyway of disabling the All day Event field in a Calendar list. I don't have the option to hide it either.

Any help appriciated...


Srikanth Reddy

Can I change the default color of a calendar event?

I have a couple calendars that will be using the overlay functionality in 2010, and chosing colors for the overlays is no problem.  However the main calendar defaults to green, and then when you open any of the overlay calendars their default color is green on their calendar but different on the main version.  Is there a way I can change the default so that either the main calendar doesn't show green (then each overlay owner wouldn't be confused), or to change the seperate overlay calendars to have their default match the selected overlay color?

Jscript to set Calendar default to All Day Event

Does anybody know how to use Jscript to set new calendar events to have "All day event" checked by default. I have followed the instructions here http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/17b9fe34-2dfa-47ad-b6a5-2efad954d7c2 with no success.

Set all day event default value

Dear all, How can i set the default value of all day event to TRUE?  Thanks, Edward

How to Hide Start Time and End Time for All Day Event in Sharepoint Calendar DispForm

Hi All, Currently, when I add my Calendar web part to my page it displays the date and time for start and end dates. How can I get my web part to hide the times and only show the start and end date when the All Day event box is checked?

Anonymous Access to "Event Export" on sharepoint calendar display page

I am using a SharePoint calendar with events added in the list. When an anonymous user tries to use "Export Event" on the display page ,the user is prompted for a login. Is there a way that an anonymous user can download the .ics file without logging in ? Is anonymous access even possible ?    

In a group calendar, can items be made visiable to all users by default without adding them as atten

Well the title says it all really. We have a functioning sp 2010 site, setup this weekend, that's working great so far.  Primarily its being used for the company manual and procedures (a wiki site).  Search is working well and so on. I added a calendar with the intention of showing key company activities, plus holiday information and who's out at meetings.  We're a small company and this is unlikely to get ridiculously except on exceptional days. As it stands, when i create an item (for example someone out for a weeks holiday) unless another user adds one of the 'attendees' of the holiday event to the calendar it doesn't show up.  If I add all users as attendees then they can all see it by default. However, if I show that our chairman is attending a meeting at a client, then I can't explicitly say that the chairman is an attendee because for everyone to see it, they have to be attendees as well. I nsoed around a little and thought target audiences might be the way to go.  I configured all users and manager relationships, compiled the audience (it shows the right number of users).  However, if I setup a meeting with the chairman as an attendee, and the whole company audience as the target audience, then people still can't see it. Back to square one. So, is there an actual answer to this?  A different type of calendar, a query that

SharePoint Calendar "All Day Event"

Whenever "All Day Event" is not checked in Sharepoint calendar, it shows blank, can we force it to show "No" instead of blank . I really appreicate anyone's response.  

All day event for sharepoint calendar

Hi Experts,   Whenever I create an event and if I don't select "All Day Event" , it shows blank. Can we force it to show "No" instead of blank and how to do it? Thanks.

SharePoint 2007 Calendar - add an event to a recurring meeting workspace

Hello all,

I was wondering if someone can answer this problem I am having. 

Simple Question: Are you able to add an additional event into a recurring event which is linked to a meeting workspace?

Long version:

I create an event in a calendar with the recurrence of every monday for the month. (4 dates lets say)  We have a special meeting to add to the meeting workspace, so I add an additional event in the calendar and try to add this date (15th lets say) to that previous meeting workspace series.

My problem is that the ability to add the new date (15th) to the series doesn't show me any options to add to that previous meeting workspace, I can only create a new meeting workspace.

My colleague who has used SharePoint 2003 at another workplace is 100% sure she could do this, however I am at a loss where SharePoint 2007 allows this functionality.

In a new calendar, I tested this theory by creating 3 events with recurring dates and creating an associated meeting workspace with each of them.  Not once did I get the option to add the event to another meeting workspace.  I added an event with no recurrence with an associated meeting workspace, the very next event could add to that meeting workspace which is what I want except to a recurring meeting workspace.

From my analysis, any event that has a recurring series

Simplest way to get a month change event on WPF Calendar (.net 4.0)



is there a simple way to receive some event as soon as someone turns the wpf calendar to the next or previous month?

The calendar is used as a user control part. (If this info is necessary)

At least i tried to handle this over some code via "DependencyProperty" to access the contend and the changed event of the "PART_Header...".

Unfortunately that won't solve my case.

Best regards,


Creating a VCS calendar event with 'All day event' checked



I've successfully created a but of C# code to create a VCS calendar file, but I can't find anywhere where to set this as an 'all day event'.

Has anyone been able to do this, or is it not an option in VCS?

Many thanks

Default Calendar modification, unable to delete fields


Hello.  I'm new to Sharepoint Foundations 2010 (i've used Sharepoint Portal Server2007 and all the prior versions).  I would like to use the default calendar as a template but cannot delete the fields I do not want to use.  What are the steps to remove the fields (Something involving the Event Content Type) I do not wish to use?  I've tried deleting the content type but cannot (I get the following error: The last content type on a list cannot be deleted.Troubleshoot issues with Microsoft SharePoint Foundation. Correlation ID: bcb50019-5830-42f3-bde6-9b0353b803e1 Date and Time: 10/4/2010 2:24:05 PM ).  If I could create a new calendar with only the fields i need that has the current view in it that would be great.  I cannot seem to get a new view to mimic the current view from the calendar webpart.  any ideas could be greatly appreciated.



Rotational event is calendar control


I need help getting a drop down list selection to populate a calendar.  The user selects a vehicle from the dropdownlist and based on that selection, the calendar needs to populate a link with drivers names on whatever days the vehicle is rented out for.  Anyone have a solution?

Calendar View: Unable filter Recurring Event by Start/End Time and Group by Recurring Event View

Hi All,
I have just found several issues with Calendar View from WSS 3.0:

Unable to filter by [Start Time] and [End Time]
I am not sure why these 2 columns doesn't appear in the Filtering column in the View Settings. The workaround found in the internet is to create calculated column for Start Time and and End Time. However, it doesn't work for Recurring Event, the calculated column will show only first recurring event Start Time.

Unable to use "Group By"
When I create new view in Calendar using format: "Standard View, with Expanding Recurring Events", there is no option to specify "Group By". Anyone knows how to show all recurring event in List view and grouped by Start Time (or any other column).

Thank you and apprecate for any idea.

Disable all day event in Calendar list

Hi there,

Is there anyway of disabling the All day Event field in a Calendar list. I don't have the option to hide it either.

Calendar Web Part for SharePoint that displays and gives fetails of events from an event list: Value

Hi All,

         I have followed the following post to create the custom Calendat webpart, that displays the details of events from events list. 

But i am getting the following error when i click on the dates shown as there are some events. The error looks like the following,

Server Error in '/' Application.

Value does not fall within the expected range. 
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. 

Exception Details: System.ArgumentException: Value does not fall within the expected range.

Source Error: 

ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend