﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebScheduler - Disable recurring events</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Disable-recurring-events/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>Disable recurring events</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Disable-recurring-events/</link><pubDate>Mon, 07 Feb 2011 01:13:44 GMT</pubDate><dc:creator>yudi</dc:creator><description>&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;In order to prevent users to be able to create recurring events, we need to disable following things as shown in the following list.&lt;/span&gt;&lt;/p&gt;
&lt;ul style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;&lt;li&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hide/remove “New Recurring Event” from WebScheduler’s context menu&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;One possible way to add new recurring event is by using the context menu. By hiding this menu from WebScheduler’s context menu, there is no way that user would be able to add new recurring event into WebScheduler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;This step can be achieved using WebScheduler OnContextMenu client-side event. The OnContextMenu is the event handler when the context menu is being shown or about to be displayed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;The snippet code below can be used to hide/remove the “New Recurring Event” menu object from WebScheduler’s context menu.&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;function&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: black; font-size: 9pt"&gt;WebScheduler1_OnContextMenu(controlId, type, menuObj, el, eventView) {&lt;/span&gt;
    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;var&lt;/span&gt; &lt;span style="font-family: 'consolas', 'courier new'; color: black; font-size: 9pt"&gt;WebScheduler1 = ISGetObject(controlId);

    menuObj.Items.GetNamedItem(&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: #a31515; font-size: 9pt"&gt;"mnuNewRecurringEvent"&lt;/span&gt;&lt;span style="font-family: 'consolas', 'courier new'; color: black; font-size: 9pt"&gt;).Hide();&lt;/span&gt;

    &lt;span style="font-family: 'consolas', 'courier new'; color: blue; font-size: 9pt"&gt;return true;&lt;/span&gt;
&lt;span style="font-family: 'consolas', 'courier new'; color: black; font-size: 9pt"&gt;}&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hide/remove “Recurrence” section from WebScheduler’s editing form&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Another possible way to add new recurring event is by using the editing form. By removing this section from WebScheduler’s editing form, there is no way that user would be able to add new recurring event into WebScheduler.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Assume that the default editing form of WebScheduler is used, and then we can simply remove the “Recurrence” section by selecting following row and comment out the selected lines (as shown in the following snippet code).&lt;/span&gt;&lt;/p&gt;&lt;pre&gt;&lt;span style="font-family: 'consolas', 'courier new'; font-size: 9pt; color: green;"&gt;&amp;lt;%--&amp;lt;tr&amp;gt;
    &amp;lt;td&amp;gt;
        &amp;lt;span class="header" onclick="WS_HideShowContent('recurrenceImg', 'recurrenceContent')"&amp;gt;
            &amp;lt;img id="recurrenceImg" src="ISRes.axd?S/arrow_right.gif" align="absmiddle" /&amp;gt;
            Recurrence &amp;lt;/span&amp;gt;
    &amp;lt;/td&amp;gt;
&amp;lt;/tr&amp;gt;--%&amp;gt;&lt;/span&gt;&lt;/pre&gt;&lt;/li&gt;&lt;li&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Remove the RecurringEventsBinding from WebScheduler&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;li&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Remove the RecurrenceBinding from WebScheduler&lt;/span&gt;&lt;/p&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;p&gt;&lt;span style="font-family: 'segoe ui','sans-serif'; color: #1f497d; font-size: 9pt"&gt;Hope this helps.&lt;/span&gt;&lt;/p&gt;</description></item><item><title>Disable recurring events</title><link>http://www.intersoftsolutions.com/Community/WebScheduler/Disable-recurring-events/</link><pubDate>Fri, 04 Feb 2011 16:38:56 GMT</pubDate><dc:creator>dbhack</dc:creator><description>&lt;p&gt;Is there a way to disable the recurring events feature? I don't want users to be able to create recurring events.&lt;/p&gt;</description></item></channel></rss>