Stump the Panel Topic: Calendar View - Time Ranges http://www.endusersharepoint.com/STP/ SharePoint QA en Tue, 08 Dec 2009 23:18:28 +0000 mahendradeva on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-11048 Wed, 28 Oct 2009 01:54:40 +0000 mahendradeva 11048@http://www.endusersharepoint.com/STP/ <p>for monthly, weekly and day view in sharepoint calender we can add the following: </p> <p>&lt;script src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js" type="text/javascript"&gt;&lt;/script&gt;<br /> &lt;script type="text/javascript"&gt;<br /> $(<br /> function()<br /> {<br /> $("a.ms-cal-dayitem&gt;")<br /> .find("NOBR").remove()<br /> .end()<br /> $("td.ms-cal-monthitem&gt;")<br /> .find("nobr").remove()<br /> .end()<br /> .find("br").remove();<br /> }<br /> );<br /> &lt;/script&gt;</p> <p>The above worked fine in my case!<br /> HTH </p> edw3105 on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-10334 Mon, 28 Sep 2009 22:31:59 +0000 edw3105 10334@http://www.endusersharepoint.com/STP/ <p>Anyone have any ideas on this?? </p> edw3105 on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-9474 Fri, 21 Aug 2009 17:37:50 +0000 edw3105 9474@http://www.endusersharepoint.com/STP/ <p>Thanks so much for this snippet, I have a question though...this works great until I need to add other JavaScript code to the CEWP, then it doesn't work at all. Any ideas??? </p> dsslayers on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-9114 Tue, 11 Aug 2009 15:59:34 +0000 dsslayers 9114@http://www.endusersharepoint.com/STP/ <p>iamspartacus,</p> <p>You can create a calculated column that is equal to your [end time] + 1</p> <p>Use this calculated column as your end time column, and it will display correctly on the calendar view. If you get errors when trying to put a calculated column as a time field in a calendar, there is a patch from microsoft that fixes the issue. </p> iamspartacus on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-8940 Wed, 05 Aug 2009 14:07:51 +0000 iamspartacus 8940@http://www.endusersharepoint.com/STP/ <p>Hello out there.</p> <p>Checking in to see if anyone has any ideas of how to allow a multi-day event to appear correctly (strecthed over a few days as oppossed to only showing on the first day of the event) in a list's calendar view? </p> iamspartacus on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-8549 Mon, 20 Jul 2009 14:49:47 +0000 iamspartacus 8549@http://www.endusersharepoint.com/STP/ <p>Since I'm in here...</p> <p>The above snippet of code from AutoSponge does exactly what it's suppossed to do which is a big help! Unfortunately, it does a little more than we may want. </p> <p>When using it, and setting up a multiple-day event, the listing will only show for one day on the calendar view (i.e. a Mon-Wed event will only show in Mon) unless the event is longer than a week. If it is longer than a week, it will end on the calendar view one day before the actual end date. Wierd, huh?</p> <p>Any ideas? </p> iamspartacus on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-8548 Mon, 20 Jul 2009 14:31:17 +0000 iamspartacus 8548@http://www.endusersharepoint.com/STP/ <p>Hi rachels,</p> <p>You can place a CEWP on a page by going to Site Actions / Edit Page (assuming you have the rights and the page in question is a web part page). Thsi opens the page up in edit mode.</p> <p>You should see a gold bar that says "Add a Web Part" - click on that and a pop-up window will coem up and display a list of available web parts. Scroll down and, under Miscellaneous, you should see "Content Editor Web Part". Check the box next to it and click the "Add" button. That will place a CEWP on the page so you can insert AutoSponge's bit of code.</p> <p>Hi rilebeau,</p> <p>Great question - I have no idea. Anyone? </p> rilebeau on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-8117 Wed, 01 Jul 2009 11:04:42 +0000 rilebeau 8117@http://www.endusersharepoint.com/STP/ <p>This works great for a calendar in month view, but is there any way to achieve the same results for a day view? </p> rachels on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-7403 Fri, 05 Jun 2009 12:33:48 +0000 rachels 7403@http://www.endusersharepoint.com/STP/ <p>How do you place a CEWP on the page to remove the start time from the Sharepoint calendar? </p> AutoSponge on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-3155 Tue, 23 Dec 2008 21:08:30 +0000 AutoSponge 3155@http://www.endusersharepoint.com/STP/ <p>Yeah, that's the web part doing that and it's not configurable. So I'd probably "fix" that with JavaScript, placing a CEWP on the page to remove those items.</p> <pre><code>&lt;td class=&quot;ms-cal-monthitem&quot;&gt; &lt;a tabindex=&quot;25&quot; target=&quot;_self&quot; onclick=&quot;GoToLink(this);return false;&quot; href=&quot;/Lists/Calendar/DispForm.aspx?ID=2&quot; onfocus=&quot;OnLink(this)&quot;&gt; &lt;nobr&gt; &lt;b&gt;1:00 PM&lt;/b&gt; &lt;/nobr&gt; &lt;br /&gt; Test : 13:00-14:00 &lt;/a&gt; &lt;/td&gt;</code></pre> <p>If the rendered code looks like this, we can attack the <code>&lt;nobr&gt;</code> and <code>&lt;br /&gt;</code> elements within the .ms-cal-monthitem class. In jQuery it would look like this:</p> <pre><code>&lt;script src=&quot;http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js&quot; type=&quot;text/javascript&quot;&gt;&lt;/script&gt; &lt;script type=&quot;text/javascript&quot;&gt; $(function() { $(&quot;td.ms-cal-monthitem&gt; a&quot;) .find(&quot;nobr&quot;).remove() .end() .find(&quot;br&quot;).remove(); }); &lt;/script&gt;</code></pre> iamspartacus on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-3142 Tue, 23 Dec 2008 14:34:40 +0000 iamspartacus 3142@http://www.endusersharepoint.com/STP/ <p>Awesome - thanks, AutoSponge. Now how do I get rid of the Start Time that appears by default above my list data on the actual calendar? With multiple entries per day, each of those Start Times eats up space.</p> <p>i.e.:</p> <p>5:00 AM &lt;--- this appears by default *<br /> Krystal Winters : 5:00-14:00<br /> 8:00 AM<br /> Fred Catalba : 8:00-14:00<br /> 2:00 PM<br /> Theresa Knoll : 14:00-23:00</p> <p>* this time appearing by default would be fine if it reflected the time range of 5AM - 2PM but it won't. So our calculated column that shows the time range makes the default Start Time repetitive and space-consuming. Can I have one or the other or does it have to be both? </p> AutoSponge on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-3140 Tue, 23 Dec 2008 13:53:57 +0000 AutoSponge 3140@http://www.endusersharepoint.com/STP/ <p>Make the date a string and concatenate them with Title you can make a calc column to use in the month/week view.</p> <p>=Title&#38;" : "&#38;TEXT([Start Time],"h:mm")&#38;"-"&#38;TEXT([End Time],"h:mm") </p> iamspartacus on "Calendar View - Time Ranges" http://www.endusersharepoint.com/STP/topic/calendar-view-time-ranges#post-3134 Tue, 23 Dec 2008 11:35:19 +0000 iamspartacus 3134@http://www.endusersharepoint.com/STP/ <p>Any way to have MOSS list the time range of an event in a Calendar View of a list instead of just the start time? Need to create an after hours schedule that shows start and end times but don't really want to buy Calendar Plus if I don't have to. </p>