Preparetoedit doesn't do anything

7 posts, 0 answers
  1. Joona
    Joona avatar
    5 posts
    Member since:
    Feb 2011

    Posted 02 May 2011 Link to this post

    Hi,

    I can't seem to get the PrepareToEdit function working. When I call it with:
     Dim recurrenceException as Appointment = RadScheduler1.PrepareToEdit(occurrence, False)
    The returned appointment is exactly same as the given appointment. For example there is property:
        RecurrenceState   which is always NotRecurring {0} shouldn't it be something like: Exception {3}

    When I try to use the created appointment it is handled as if I would be editing the series not creating a new exception.
    Could you advice me how could I change the series appointment to a exception appointment and give this exception appointment as parameter to ShowAdvancedEditForm.

    Could you check below where is the contents of the appointment object after Preparetoedit function and how I think the object should look after PrepareToEdit.

    BR
    Joona
    --------
    After calling PreparetoEdit:

    <i>-       Appointment   {Telerik.Web.UI.Appointment}   Telerik.Web.UI.Appointment<br>
            AllowDelete   True   Boolean<br>
            AllowEdit   True   Boolean<br>
    +       AppointmentControls   Count = 0   System.Collections.Generic.IList(Of Telerik.Web.UI.AppointmentControl)<br>
    +       Attributes   {System.Web.UI.AttributeCollection}   System.Web.UI.AttributeCollection<br>
    +       BackColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
    +       BorderColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
            BorderStyle   NotSet {0}   System.Web.UI.WebControls.BorderStyle<br>
    +       BorderWidth   {}   System.Web.UI.WebControls.Unit<br>
            ClientID   ""   String<br>
            ContextMenuID   ""   String<br>
            CssClass   ""   String<br>
            DataItem   Nothing   Object<br>
            Description   ""   String<br>
    +       DomElements   Count = 0   System.Collections.Generic.IList(Of String)<br>
    +       Duration   {01:00:00}   System.TimeSpan<br>
            End   #4/29/2011 9:00:00 AM#   Date<br>
    +       Font   {}   System.Web.UI.WebControls.FontInfo<br>
    +       ForeColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
    +       ID   398628 {Integer}   Object<br>
            IsTrackingViewState   False   Boolean<br>
    -       Owner   {Telerik.Web.UI.RadScheduler}   Telerik.Web.UI.RadScheduler<br>
            _adapter   Nothing   System.Web.UI.Adapters.ControlAdapter<br>
    +       _page   {ASP.calendar_calendar_aspx}   System.Web.UI.Page<br>
            AccessKey   ""   String<br>
    +       ActiveFormAppointment   {Telerik.Web.UI.Appointment}   Telerik.Web.UI.Appointment<br>
            ActiveFormMode   AdvancedEdit {4}   Telerik.Web.UI.SchedulerFormMode<br>
    +       ActiveModel   {Telerik.Web.UI.Scheduler.Views.Week.Model}   Telerik.Web.UI.Scheduler.Views.ISchedulerModel<br>
            ActiveSlotIndex   ""   String<br>
            Adapter   Nothing   System.Web.UI.Adapters.ControlAdapter<br>
    +       AdvancedEditTemplate   {System.Web.UI.CompiledBindableTemplateBuilder}   System.Web.UI.ITemplate<br>
    +       AdvancedForm   {Telerik.Web.UI.AdvancedFormSettings}   Telerik.Web.UI.AdvancedFormSettings<br>
    +       AdvancedInsertTemplate   {System.Web.UI.CompiledBindableTemplateBuilder}   System.Web.UI.ITemplate<br>
            AllowDelete   True   Boolean<br>
            AllowEdit   True   Boolean<br>
            AllowInsert   True   Boolean<br>
    +     
     AppointmentComparer   {Telerik.Web.UI.AppointmentComparer}   System.Collections.Generic.IComparer(Of
     Telerik.Web.UI.Appointment)<br>
    +     
     AppointmentContextMenus   {Telerik.Web.UI.RadSchedulerContextMenuCollection}   Telerik.Web.UI.RadSchedulerContextMenuCollection<br>
    +       AppointmentContextMenuSettings   {Telerik.Web.UI.ContextMenuSettings}   Telerik.Web.UI.ContextMenuSettings<br>
             
    AppointmentController   {Telerik.Web.UI.Scheduling.AppointmentController}   Telerik.Web.UI.Scheduling.AppointmentController<br>
    +       AppointmentFactory   {Telerik.Web.UI.Scheduling.DefaultAppointmentFactory}   Telerik.Web.UI.IAppointmentFactory<br>
    +       Appointments   {Telerik.Web.UI.AppointmentCollection}   Telerik.Web.UI.AppointmentCollection<br>
            AppointmentStyleMode   Auto {0}   Telerik.Web.UI.AppointmentStyleMode<br>
    +       AppointmentTemplate   {System.Web.UI.CompiledTemplateBuilder}   System.Web.UI.ITemplate<br>
            AppRelativeTemplateSourceDirectory   "~/calendar/"   String<br>
    +       Attributes   {System.Web.UI.AttributeCollection}   System.Web.UI.AttributeCollection<br>
    +       BackColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
    +       BindingContainer   {ASP.calendar_calendar_aspx}   System.Web.UI.Control<br>
            BlankNavigateUrl   "#"   String<br>
    +       BorderColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
            BorderStyle   NotSet {0}   System.Web.UI.WebControls.BorderStyle<br>
    +       BorderWidth   {}   System.Web.UI.WebControls.Unit<br>
            ChildControlsCreated   False   Boolean<br>
            ClientID   "M_MP_RS"   String<br>
            ClientIDSeparator   "_"c   Char<br>
            ClientStateFieldID   "M_MP_RS_ClientState"   String<br>
    +       ColumnWidth   {}   System.Web.UI.WebControls.Unit<br>
    +       Context   {System.Web.HttpContext}   System.Web.HttpContext<br>
    +       Controls   {System.Web.UI.ControlCollection}   System.Web.UI.ControlCollection<br>
            ControlState   Loaded {5}   System.Web.UI.ControlState<br>
    +       ControlStyle   {Telerik.Web.UI.RadScheduler+SchedulerStyle}   System.Web.UI.WebControls.Style<br>
            ControlStyleCreated   True   Boolean<br>
            CssClass   ""   String<br>
            CssClassFormatString   "RadScheduler RadScheduler_{0}"   String<br>
    +       Culture   {en-GB}   System.Globalization.CultureInfo<br>
    +       CustomAttributeNames   {Length=12}   String()<br>
            DataDescriptionField   ""   String<br>
            DataEndField   "LogicalEndDateTime"   String<br>
            DataKeyField   "ID"   String<br>
            DataMember   ""   String<br>
            DataRecurrenceField   "RecurrenceRule"   String<br>
            DataRecurrenceParentKeyField   "RecurrenceParentActivityID"   String<br>
            DataSource   Nothing   Object<br>
            DataSourceID   ""   String<br>
    +       DataSourceObject   {System.Web.UI.WebControls.ReadOnlyDataSource}   System.Web.UI.IDataSource<br>
    +       DataSourceView   {System.Web.UI.WebControls.ReadOnlyDataSourceView}   System.Web.UI.DataSourceView<br>
            DataStartField   "LogicalStartDateTime"   String<br>
            DataSubjectField   "Name"   String<br>
    +       DayEndTime   {18:00:00}   System.TimeSpan<br>
    +       DayStartTime   {08:00:00}   System.TimeSpan<br>
    +       DayView   {Telerik.Web.UI.DayViewSettings}   Telerik.Web.UI.DayViewSettings<br>
            DefaultAdvancedFormRendered   False   Boolean<br>
            DefaultCssClass   "Default"   String<br>
            DesignMode   False   Boolean<br>
            DesignMode (Control)   False   Boolean<br>
            DisplayDeleteConfirmation   True   Boolean<br>
            DisplayRecurrenceActionDialogOnMove   False   Boolean<br>
            EditFormDateFormat   "d.M.yyyy"   String<br>
            EditFormTimeFormat   "H:mm"   String<br>
            EditingRecurringSeries   False   Boolean<br>
            EnableAdvancedForm   True   Boolean<br>
            EnableAjaxSkinRendering   True   Boolean<br>
            EnableCustomAttributeEditing   True   Boolean<br>
            Enabled   True   Boolean<br>
            EnableDatePicker   True   Boolean<br>
            EnableDescriptionField   False   Boolean<br>
            EnableEmbeddedBaseStylesheet   False   Boolean<br>
            EnableEmbeddedScripts   True   Boolean<br>
            EnableEmbeddedSkins   False   Boolean<br>
            EnableLegacyRendering   False   Boolean<br>
            EnableRecurrenceSupport   True   Boolean<br>
            EnableResourceEditing   True   Boolean<br>
            EnableTheming   True   Boolean<br>
            EnableViewState   True   Boolean<br>
            EnableViewStateDefault   True   Boolean<br>
            EventDataBinding   {Object}   Object<br>
            EventInit   {Object}   Object<br>
            EventLoad   {Object}   Object<br>
            EventPreRender   {Object}   Object<br>
    +       Events   {System.ComponentModel.EventHandlerList}   System.ComponentModel.EventHandlerList<br>
            EventUnload   {Object}   Object<br>
            FirstDayOfWeek   Monday {1}   System.DayOfWeek<br>
    +       flags   {System.Web.Util.SimpleBitVector32}   System.Web.Util.SimpleBitVector32<br>
    +       Font   {}   System.Web.UI.WebControls.FontInfo<br>
    +       ForeColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
    +       FormContainer   {Telerik.Web.UI.SchedulerFormContainer}   Telerik.Web.UI.SchedulerFormContainer<br>
            GroupBy   ""   String<br>
            GroupingDirection   Horizontal {2}   Telerik.Web.UI.GroupingDirection<br>
            HasAttributes   False   Boolean<br>
            HasChildViewState   False   Boolean<br>
            HasCustomProvider   False   Boolean<br>
            HasDataSource   False   Boolean<br>
            HasDescriptionField   False   Boolean<br>
    +       Height   {400px}   System.Web.UI.WebControls.Unit<br>
            HoursPanelTimeFormat   "Htt"   String<br>
            ID   "RS"   String<br>
            ID_SEPARATOR   "$"c   Char<br>
            IdSeparator   "$"c   Char<br>
            IdSeparatorFromConfig   "$"c   Char<br>
            InAdvancedMode   True   Boolean<br>
            Initialized   True   Boolean<br>
    +       InlineEditTemplate   {Telerik.Web.UI.Scheduling.InlineEditTemplate}   System.Web.UI.ITemplate<br>
    +       InlineInsertTemplate   {System.Web.UI.CompiledBindableTemplateBuilder}   System.Web.UI.ITemplate<br>
            IsBindingContainer   True   Boolean<br>
            IsBoundUsingDataSourceID   False   Boolean<br>
            IsChildControlStateCleared   True   Boolean<br>
            IsEnabled   True   Boolean<br>
            IsParentedToUpdatePanel   True   Boolean<br>
            IsReloadable   False   Boolean<br>
            IsSkinSet   True   Boolean<br>
            IsTrackingViewState   True   Boolean<br>
            IsViewStateEnabled   True   Boolean<br>
            isWebControlDisabled   524288   Integer<br>
            JavaScriptDateFormat   "yyyy/MM/dd HH:mm"   String<br>
            LastDayOfWeek   Sunday {0}   System.DayOfWeek<br>
            LEGACY_ID_SEPARATOR   ":"c   Char<br>
            LoadViewStateByID   False   Boolean<br>
    +       Localization   {Telerik.Web.UI.SchedulerStrings}   Telerik.Web.UI.SchedulerStrings<br>
            MaximumRecurrenceCandidates   3000   Integer<br>
            MinimumInlineFormHeight   100   Integer<br>
            MinimumInlineFormWidth   250   Integer<br>
            MinutesPerRow   30   Integer<br>
    +       MonthView   {Telerik.Web.UI.MonthViewSettings}   Telerik.Web.UI.MonthViewSettings<br>
    +       MultiDayView   {Telerik.Web.UI.MultiDayViewSettings}   Telerik.Web.UI.MultiDayViewSettings<br>
    +       NamingContainer   {System.Web.UI.WebControls.ContentPlaceHolder}   System.Web.UI.Control<br>
            NumberOfHoveredRows   2   Integer<br>
            OnClientAppointmentClick   ""   String<br>
            OnClientAppointmentContextMenu   ""   String<br>
            OnClientAppointmentContextMenuItemClicked   ""   String<br>
            OnClientAppointmentContextMenuItemClicking   ""   String<br>
            OnClientAppointmentCreated   ""   String<br>
            OnClientAppointmentDataBound   ""   String<br>
            OnClientAppointmentDeleting   ""   String<br>
            OnClientAppointmentDoubleClick   ""   String<br>
            OnClientAppointmentEditing   ""   String<br>
            OnClientAppointmentInserting   ""   String<br>
            OnClientAppointmentMoveEnd   ""   String<br>
            OnClientAppointmentMoveStart   ""   String<br>
            OnClientAppointmentMoving   ""   String<br>
            OnClientAppointmentResizeEnd   ""   String<br>
            OnClientAppointmentResizeStart   ""   String<br>
            OnClientAppointmentResizing   ""   String<br>
            OnClientAppointmentSerialized   ""   String<br>
            OnClientAppointmentsPopulated   ""   String<br>
            OnClientAppointmentsPopulating   ""   String<br>
            OnClientAppointmentWebServiceDeleting   ""   String<br>
            OnClientAppointmentWebServiceInserting   ""   String<br>
            OnClientAppointmentWebServiceUpdating   ""   String<br>
            OnClientDataBound   ""   String<br>
            OnClientFormCreated   "schedulerFormCreated"   String<br>
            OnClientNavigationCommand   ""   String<br>
            OnClientNavigationComplete   ""   String<br>
            OnClientRecurrenceActionDialogClosed   ""   String<br>
            OnClientRecurrenceActionDialogShowing   ""   String<br>
            OnClientRecurrenceExceptionCreating   ""   String<br>
            OnClientRecurrenceExceptionsRemoving   ""   String<br>
            OnClientRequestFailed   ""   String<br>
            OnClientRequestSuccess   ""   String<br>
            OnClientResourcesPopulated   ""   String<br>
            OnClientResourcesPopulating   ""   String<br>
            OnClientTimeSlotClick   ""   String<br>
            OnClientTimeSlotContextMenu   ""   String<br>
            OnClientTimeSlotContextMenuItemClicked   ""   String<br>
            OnClientTimeSlotContextMenuItemClicking   ""   String<br>
            OverflowBehavior   Expand {2}   Telerik.Web.UI.OverflowBehavior<br>
    +       Page   {ASP.calendar_calendar_aspx}   System.Web.UI.Page<br>
    +       Parent   {System.Web.UI.WebControls.TableCell}   System.Web.UI.Control<br>
    +       PostBackDataHandler   {Telerik.Web.UI.RadScheduler}   System.Web.UI.IPostBackDataHandler<br>
    +       PostBackEventHandler   {Telerik.Web.UI.RadScheduler}   System.Web.UI.IPostBackEventHandler<br>
    +       Provider   {Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider}   Telerik.Web.UI.SchedulerProviderBase<br>
            ProviderContext   Nothing   Object<br>
            ProviderName   "Integrated"   String<br>
            ReadOnly   False   Boolean<br>
            RecurrenceSupport   True   Boolean<br>
            RegisterWithScriptManager   True   Boolean<br>
            RequiresDataBinding   False   Boolean<br>
            RequiresLegacyRendering   False   Boolean<br>
    +       ResourceHeaderTemplate   {Telerik.Web.UI.ResourceHeaderTemplate}   System.Web.UI.ITemplate<br>
    +       Resources   {Telerik.Web.UI.ResourceCollection}   Telerik.Web.UI.ResourceCollection<br>
    +       ResourceStyles   {Telerik.Web.UI.ResourceStyleMappingCollection}   Telerik.Web.UI.ResourceStyleMappingCollection<br>
    +       ResourceTypes   {Telerik.Web.UI.ResourceTypeCollection}   Telerik.Web.UI.ResourceTypeCollection<br>
    +       RowHeaderWidth   {52px}   System.Web.UI.WebControls.Unit<br>
    +       RowHeight   {25px}   System.Web.UI.WebControls.Unit<br>
            RuntimeSkin   "Default"   String<br>
            RuntimeSkinInternal   "Default"   String<br>
    +       ScriptManager   {System.Web.UI.ScriptManager}   System.Web.UI.ScriptManager<br>
    +       SelectArguments   {System.Web.UI.DataSourceSelectArguments}   System.Web.UI.DataSourceSelectArguments<br>
            SelectedDate   #4/29/2011 8:00:00 AM#   Date<br>
            SelectedView   WeekView {1}   Telerik.Web.UI.SchedulerViewType<br>
            ShowAllDayRow   True   Boolean<br>
            ShowDateHeaders   True   Boolean<br>
            ShowFooter   True   Boolean<br>
            ShowFullTime   False   Boolean<br>
            ShowHeader   True   Boolean<br>
            ShowHoursColumn   True   Boolean<br>
            ShowNavigationPane   True   Boolean<br>
            ShowResourceHeaders   True   Boolean<br>
            ShowViewTabs   True   Boolean<br>
            Site   Nothing   System.ComponentModel.ISite<br>
            Skin   "Default"   String<br>
            SkinID   ""   String<br>
             
    SpacerImageUrl   "/Website/WebResource.axd?d=tDQmp-3Egm9LCF4lfS3WXENTx6Ls0XgcNXR-8hPPw7xKe49ig7X0e31fcpoUt3dCNP__duKvrr3oMOlvKDi5KKY19TM1&t=634208886757546466"   String<br>
            StartEditingInAdvancedForm   True   Boolean<br>
            StartInsertingInAdvancedForm   False   Boolean<br>
    +       Style   {System.Web.UI.CssStyleCollection}   System.Web.UI.CssStyleCollection<br>
            TabIndex   0   Short<br>
            TagKey   Div {25}   System.Web.UI.HtmlTextWriterTag<br>
            TagName   "div"   String<br>
    +       TemplateControl   {ASP.calendar_calendar_aspx}   System.Web.UI.TemplateControl<br>
    +       TemplateControlVirtualDirectory   {/Website/calendar/}   System.Web.VirtualPath<br>
            TemplateSourceDirectory   "/Website/calendar"   String<br>
            TimeLabelRowSpan   2   Integer<br>
    +       TimelineView   {Telerik.Web.UI.TimelineViewSettings}   Telerik.Web.UI.TimelineViewSettings<br>
    +     
     TimeSlotContextMenus   {Telerik.Web.UI.RadSchedulerContextMenuCollection}   Telerik.Web.UI.RadSchedulerContextMenuCollection<br>
    +       TimeSlotContextMenuSettings   {Telerik.Web.UI.ContextMenuSettings}   Telerik.Web.UI.ContextMenuSettings<br>
    +       TimeZoneOffset   {00:00:00}   System.TimeSpan<br>
            ToolTip   ""   String<br>
            UniqueID   "M$MP$RS"   String<br>
            UseDefaultAdvancedEdit   False   Boolean<br>
            UseDefaultAdvancedInsert   False   Boolean<br>
            UseHorizontalScrolling   False   Boolean<br>
            UsingWebServiceBinding   False   Boolean<br>
            ValidationGroup   "M_MP_RS"   String<br>
    +       ViewState   {System.Web.UI.StateBag}   System.Web.UI.StateBag<br>
            ViewStateIgnoresCase   False   Boolean<br>
            Visible   True   Boolean<br>
    +       VisibleAppointments   {Telerik.Web.UI.AppointmentCollection}   Telerik.Web.UI.AppointmentCollection<br>
            VisibleRangeEnd   #5/2/2011#   Date<br>
            VisibleRangeStart   #4/25/2011#   Date<br>
    +       VisualTimeZoneOffset   {03:00:00}   System.TimeSpan<br>
            VisualToday   #4/29/2011#   Date<br>
    +       WebServiceSettings   {Telerik.Web.UI.SchedulerWebServiceSettings}   Telerik.Web.UI.SchedulerWebServiceSettings<br>
            WeekLength   7   Integer<br>
    +       WeekView   {Telerik.Web.UI.WeekViewSettings}   Telerik.Web.UI.WeekViewSettings<br>
    +       Width   {}   System.Web.UI.WebControls.Unit<br>
    +       WorkDayEndTime   {17:00:00}   System.TimeSpan<br>
    +       WorkDayStartTime   {08:00:00}   System.TimeSpan<br>
            RecurrenceParentID   Nothing   Object<br>
            RecurrenceRule   "DTSTART:20110429T020000Z 
    DTEND:20110429T030000Z 
    RRULE:FREQ=DAILY;COUNT=5;INTERVAL=1;BYDAY=MO,TU,WE,TH,FR,SA,SU 
    "   String<br>
            RecurrenceState   NotRecurring {0}   Telerik.Web.UI.RecurrenceState<br>
    +       Resources   {Telerik.Web.UI.ResourceCollection}   Telerik.Web.UI.ResourceCollection<br>
            Start   #4/29/2011 8:00:00 AM#   Date<br>
            Subject   "test"   String<br>
            ToolTip   "test: "   String<br>
    +       ViewState   {System.Web.UI.StateBag}   System.Web.UI.StateBag<br>
            Visible   True   Boolean</i>

    -------------------------------------
    How I think it should look (taken from calendar component when creating new exception):
    <br>
    -       Appointment   {Telerik.Web.UI.Appointment}   Telerik.Web.UI.Appointment<br>
            AllowDelete   True   Boolean<br>
            AllowEdit   True   Boolean<br>
    +       AppointmentControls   Count = 0   System.Collections.Generic.IList(Of Telerik.Web.UI.AppointmentControl)<br>
    +       Attributes   {System.Web.UI.AttributeCollection}   System.Web.UI.AttributeCollection<br>
    +       BackColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
    +       BorderColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
            BorderStyle   NotSet {0}   System.Web.UI.WebControls.BorderStyle<br>
    +       BorderWidth   {}   System.Web.UI.WebControls.Unit<br>
            ClientID   ""   String<br>
            ContextMenuID   ""   String<br>
            CssClass   ""   String<br>
            DataItem   Nothing   Object<br>
            Description   ""   String<br>
    +       DomElements   Count = 0   System.Collections.Generic.IList(Of String)<br>
    +       Duration   {01:00:00}   System.TimeSpan<br>
            End   #4/29/2011 9:00:00 AM#   Date<br>
    +       Font   {}   System.Web.UI.WebControls.FontInfo<br>
    +       ForeColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
            ID   Nothing   Object<br>
            IsTrackingViewState   False   Boolean<br>
    -       Owner   {Telerik.Web.UI.RadScheduler}   Telerik.Web.UI.RadScheduler<br>
            _adapter   Nothing   System.Web.UI.Adapters.ControlAdapter<br>
    +       _page   {ASP.calendar_calendar_aspx}   System.Web.UI.Page<br>
            AccessKey   ""   String<br>
    +       ActiveFormAppointment   {Telerik.Web.UI.Appointment}   Telerik.Web.UI.Appointment<br>
            ActiveFormMode   AdvancedEdit {4}   Telerik.Web.UI.SchedulerFormMode<br>
    +       ActiveModel   {Telerik.Web.UI.Scheduler.Views.Week.Model}   Telerik.Web.UI.Scheduler.Views.ISchedulerModel<br>
            ActiveSlotIndex   "1:0:4"   String<br>
            Adapter   Nothing   System.Web.UI.Adapters.ControlAdapter<br>
    +       AdvancedEditTemplate   {System.Web.UI.CompiledBindableTemplateBuilder}   System.Web.UI.ITemplate<br>
    +       AdvancedForm   {Telerik.Web.UI.AdvancedFormSettings}   Telerik.Web.UI.AdvancedFormSettings<br>
    +       AdvancedInsertTemplate   {System.Web.UI.CompiledBindableTemplateBuilder}   System.Web.UI.ITemplate<br>
            AllowDelete   True   Boolean<br>
            AllowEdit   True   Boolean<br>
            AllowInsert   True   Boolean<br>
    +     
     AppointmentComparer   {Telerik.Web.UI.AppointmentComparer}   System.Collections.Generic.IComparer(Of
     Telerik.Web.UI.Appointment)<br>
    +     
     AppointmentContextMenus   {Telerik.Web.UI.RadSchedulerContextMenuCollection}   Telerik.Web.UI.RadSchedulerContextMenuCollection<br>
    +       AppointmentContextMenuSettings   {Telerik.Web.UI.ContextMenuSettings}   Telerik.Web.UI.ContextMenuSettings<br>
             
    AppointmentController   {Telerik.Web.UI.Scheduling.AppointmentController}   Telerik.Web.UI.Scheduling.AppointmentController<br>
    +       AppointmentFactory   {Telerik.Web.UI.Scheduling.DefaultAppointmentFactory}   Telerik.Web.UI.IAppointmentFactory<br>
    +       Appointments   {Telerik.Web.UI.AppointmentCollection}   Telerik.Web.UI.AppointmentCollection<br>
            AppointmentStyleMode   Auto {0}   Telerik.Web.UI.AppointmentStyleMode<br>
    +       AppointmentTemplate   {System.Web.UI.CompiledTemplateBuilder}   System.Web.UI.ITemplate<br>
            AppRelativeTemplateSourceDirectory   "~/calendar/"   String<br>
    +       Attributes   {System.Web.UI.AttributeCollection}   System.Web.UI.AttributeCollection<br>
    +       BackColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
    +       BindingContainer   {ASP.calendar_calendar_aspx}   System.Web.UI.Control<br>
            BlankNavigateUrl   "#"   String<br>
    +       BorderColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
            BorderStyle   NotSet {0}   System.Web.UI.WebControls.BorderStyle<br>
    +       BorderWidth   {}   System.Web.UI.WebControls.Unit<br>
            ChildControlsCreated   False   Boolean<br>
            ClientID   "M_MP_RS"   String<br>
            ClientIDSeparator   "_"c   Char<br>
            ClientStateFieldID   "M_MP_RS_ClientState"   String<br>
    +       ColumnWidth   {}   System.Web.UI.WebControls.Unit<br>
    +       Context   {System.Web.HttpContext}   System.Web.HttpContext<br>
    +       Controls   {System.Web.UI.ControlCollection}   System.Web.UI.ControlCollection<br>
            ControlState   Loaded {5}   System.Web.UI.ControlState<br>
    +       ControlStyle   {Telerik.Web.UI.RadScheduler+SchedulerStyle}   System.Web.UI.WebControls.Style<br>
            ControlStyleCreated   True   Boolean<br>
            CssClass   ""   String<br>
            CssClassFormatString   "RadScheduler RadScheduler_{0}"   String<br>
    +       Culture   {en-GB}   System.Globalization.CultureInfo<br>
    +       CustomAttributeNames   {Length=12}   String()<br>
            DataDescriptionField   ""   String<br>
            DataEndField   "LogicalEndDateTime"   String<br>
            DataKeyField   "ID"   String<br>
            DataMember   ""   String<br>
            DataRecurrenceField   "RecurrenceRule"   String<br>
            DataRecurrenceParentKeyField   "RecurrenceParentActivityID"   String<br>
            DataSource   Nothing   Object<br>
            DataSourceID   ""   String<br>
    +       DataSourceObject   {System.Web.UI.WebControls.ReadOnlyDataSource}   System.Web.UI.IDataSource<br>
    +       DataSourceView   {System.Web.UI.WebControls.ReadOnlyDataSourceView}   System.Web.UI.DataSourceView<br>
            DataStartField   "LogicalStartDateTime"   String<br>
            DataSubjectField   "Name"   String<br>
    +       DayEndTime   {18:00:00}   System.TimeSpan<br>
    +       DayStartTime   {08:00:00}   System.TimeSpan<br>
    +       DayView   {Telerik.Web.UI.DayViewSettings}   Telerik.Web.UI.DayViewSettings<br>
            DefaultAdvancedFormRendered   False   Boolean<br>
            DefaultCssClass   "Default"   String<br>
            DesignMode   False   Boolean<br>
            DesignMode (Control)   False   Boolean<br>
            DisplayDeleteConfirmation   True   Boolean<br>
            DisplayRecurrenceActionDialogOnMove   False   Boolean<br>
            EditFormDateFormat   "d.M.yyyy"   String<br>
            EditFormTimeFormat   "H:mm"   String<br>
            EditingRecurringSeries   False   Boolean<br>
            EnableAdvancedForm   True   Boolean<br>
            EnableAjaxSkinRendering   False   Boolean<br>
            EnableCustomAttributeEditing   True   Boolean<br>
            Enabled   True   Boolean<br>
            EnableDatePicker   True   Boolean<br>
            EnableDescriptionField   False   Boolean<br>
            EnableEmbeddedBaseStylesheet   False   Boolean<br>
            EnableEmbeddedScripts   True   Boolean<br>
            EnableEmbeddedSkins   False   Boolean<br>
            EnableLegacyRendering   False   Boolean<br>
            EnableRecurrenceSupport   True   Boolean<br>
            EnableResourceEditing   True   Boolean<br>
            EnableTheming   True   Boolean<br>
            EnableViewState   True   Boolean<br>
            EnableViewStateDefault   True   Boolean<br>
            EventDataBinding   {Object}   Object<br>
            EventInit   {Object}   Object<br>
            EventLoad   {Object}   Object<br>
            EventPreRender   {Object}   Object<br>
    +       Events   {System.ComponentModel.EventHandlerList}   System.ComponentModel.EventHandlerList<br>
            EventUnload   {Object}   Object<br>
            FirstDayOfWeek   Monday {1}   System.DayOfWeek<br>
    +       flags   {System.Web.Util.SimpleBitVector32}   System.Web.Util.SimpleBitVector32<br>
    +       Font   {}   System.Web.UI.WebControls.FontInfo<br>
    +       ForeColor   "{Name=0, ARGB=(0, 0, 0, 0)}"   System.Drawing.Color<br>
    +       FormContainer   {Telerik.Web.UI.SchedulerFormContainer}   Telerik.Web.UI.SchedulerFormContainer<br>
            GroupBy   ""   String<br>
            GroupingDirection   Horizontal {2}   Telerik.Web.UI.GroupingDirection<br>
            HasAttributes   False   Boolean<br>
            HasChildViewState   False   Boolean<br>
            HasCustomProvider   False   Boolean<br>
            HasDataSource   False   Boolean<br>
            HasDescriptionField   False   Boolean<br>
    +       Height   {400px}   System.Web.UI.WebControls.Unit<br>
            HoursPanelTimeFormat   "Htt"   String<br>
            ID   "RS"   String<br>
            ID_SEPARATOR   "$"c   Char<br>
            IdSeparator   "$"c   Char<br>
            IdSeparatorFromConfig   "$"c   Char<br>
            InAdvancedMode   True   Boolean<br>
            Initialized   True   Boolean<br>
    +       InlineEditTemplate   {Telerik.Web.UI.Scheduling.InlineEditTemplate}   System.Web.UI.ITemplate<br>
    +       InlineInsertTemplate   {System.Web.UI.CompiledBindableTemplateBuilder}   System.Web.UI.ITemplate<br>
            IsBindingContainer   True   Boolean<br>
            IsBoundUsingDataSourceID   False   Boolean<br>
            IsChildControlStateCleared   True   Boolean<br>
            IsEnabled   True   Boolean<br>
            IsParentedToUpdatePanel   True   Boolean<br>
            IsReloadable   False   Boolean<br>
            IsSkinSet   True   Boolean<br>
            IsTrackingViewState   True   Boolean<br>
            IsViewStateEnabled   True   Boolean<br>
            isWebControlDisabled   524288   Integer<br>
            JavaScriptDateFormat   "yyyy/MM/dd HH:mm"   String<br>
            LastDayOfWeek   Sunday {0}   System.DayOfWeek<br>
            LEGACY_ID_SEPARATOR   ":"c   Char<br>
            LoadViewStateByID   False   Boolean<br>
    +       Localization   {Telerik.Web.UI.SchedulerStrings}   Telerik.Web.UI.SchedulerStrings<br>
            MaximumRecurrenceCandidates   3000   Integer<br>
            MinimumInlineFormHeight   100   Integer<br>
            MinimumInlineFormWidth   250   Integer<br>
            MinutesPerRow   30   Integer<br>
    +       MonthView   {Telerik.Web.UI.MonthViewSettings}   Telerik.Web.UI.MonthViewSettings<br>
    +       MultiDayView   {Telerik.Web.UI.MultiDayViewSettings}   Telerik.Web.UI.MultiDayViewSettings<br>
    +       NamingContainer   {System.Web.UI.WebControls.ContentPlaceHolder}   System.Web.UI.Control<br>
            NumberOfHoveredRows   2   Integer<br>
            OnClientAppointmentClick   ""   String<br>
            OnClientAppointmentContextMenu   ""   String<br>
            OnClientAppointmentContextMenuItemClicked   ""   String<br>
            OnClientAppointmentContextMenuItemClicking   ""   String<br>
            OnClientAppointmentCreated   ""   String<br>
            OnClientAppointmentDataBound   ""   String<br>
            OnClientAppointmentDeleting   ""   String<br>
            OnClientAppointmentDoubleClick   ""   String<br>
            OnClientAppointmentEditing   ""   String<br>
            OnClientAppointmentInserting   ""   String<br>
            OnClientAppointmentMoveEnd   ""   String<br>
            OnClientAppointmentMoveStart   ""   String<br>
            OnClientAppointmentMoving   ""   String<br>
            OnClientAppointmentResizeEnd   ""   String<br>
            OnClientAppointmentResizeStart   ""   String<br>
            OnClientAppointmentResizing   ""   String<br>
            OnClientAppointmentSerialized   ""   String<br>
            OnClientAppointmentsPopulated   ""   String<br>
            OnClientAppointmentsPopulating   ""   String<br>
            OnClientAppointmentWebServiceDeleting   ""   String<br>
            OnClientAppointmentWebServiceInserting   ""   String<br>
            OnClientAppointmentWebServiceUpdating   ""   String<br>
            OnClientDataBound   ""   String<br>
            OnClientFormCreated   "schedulerFormCreated"   String<br>
            OnClientNavigationCommand   ""   String<br>
            OnClientNavigationComplete   ""   String<br>
            OnClientRecurrenceActionDialogClosed   ""   String<br>
            OnClientRecurrenceActionDialogShowing   ""   String<br>
            OnClientRecurrenceExceptionCreating   ""   String<br>
            OnClientRecurrenceExceptionsRemoving   ""   String<br>
            OnClientRequestFailed   ""   String<br>
            OnClientRequestSuccess   ""   String<br>
            OnClientResourcesPopulated   ""   String<br>
            OnClientResourcesPopulating   ""   String<br>
            OnClientTimeSlotClick   ""   String<br>
            OnClientTimeSlotContextMenu   ""   String<br>
            OnClientTimeSlotContextMenuItemClicked   ""   String<br>
            OnClientTimeSlotContextMenuItemClicking   ""   String<br>
            OverflowBehavior   Expand {2}   Telerik.Web.UI.OverflowBehavior<br>
    +       Page   {ASP.calendar_calendar_aspx}   System.Web.UI.Page<br>
    +       Parent   {System.Web.UI.WebControls.TableCell}   System.Web.UI.Control<br>
    +       PostBackDataHandler   {Telerik.Web.UI.RadScheduler}   System.Web.UI.IPostBackDataHandler<br>
    +       PostBackEventHandler   {Telerik.Web.UI.RadScheduler}   System.Web.UI.IPostBackEventHandler<br>
    +       Provider   {Telerik.Web.UI.Scheduling.DataSourceViewSchedulerProvider}   Telerik.Web.UI.SchedulerProviderBase<br>
            ProviderContext   Nothing   Object<br>
            ProviderName   "Integrated"   String<br>
            ReadOnly   False   Boolean<br>
            RecurrenceSupport   True   Boolean<br>
            RegisterWithScriptManager   True   Boolean<br>
            RequiresDataBinding   False   Boolean<br>
            RequiresLegacyRendering   False   Boolean<br>
    +       ResourceHeaderTemplate   {Telerik.Web.UI.ResourceHeaderTemplate}   System.Web.UI.ITemplate<br>
    +       Resources   {Telerik.Web.UI.ResourceCollection}   Telerik.Web.UI.ResourceCollection<br>
    +       ResourceStyles   {Telerik.Web.UI.ResourceStyleMappingCollection}   Telerik.Web.UI.ResourceStyleMappingCollection<br>
    +       ResourceTypes   {Telerik.Web.UI.ResourceTypeCollection}   Telerik.Web.UI.ResourceTypeCollection<br>
    +       RowHeaderWidth   {52px}   System.Web.UI.WebControls.Unit<br>
    +       RowHeight   {25px}   System.Web.UI.WebControls.Unit<br>
            RuntimeSkin   "Default"   String<br>
            RuntimeSkinInternal   "Default"   String<br>
    +       ScriptManager   {System.Web.UI.ScriptManager}   System.Web.UI.ScriptManager<br>
    +       SelectArguments   {System.Web.UI.DataSourceSelectArguments}   System.Web.UI.DataSourceSelectArguments<br>
            SelectedDate   #4/29/2011#   Date<br>
            SelectedView   WeekView {1}   Telerik.Web.UI.SchedulerViewType<br>
            ShowAllDayRow   True   Boolean<br>
            ShowDateHeaders   True   Boolean<br>
            ShowFooter   True   Boolean<br>
            ShowFullTime   False   Boolean<br>
            ShowHeader   True   Boolean<br>
            ShowHoursColumn   True   Boolean<br>
            ShowNavigationPane   True   Boolean<br>
            ShowResourceHeaders   True   Boolean<br>
            ShowViewTabs   True   Boolean<br>
            Site   Nothing   System.ComponentModel.ISite<br>
            Skin   "Default"   String<br>
            SkinID   ""   String<br>
             
    SpacerImageUrl   "/Website/WebResource.axd?d=tDQmp-3Egm9LCF4lfS3WXENTx6Ls0XgcNXR-8hPPw7xKe49ig7X0e31fcpoUt3dCNP__duKvrr3oMOlvKDi5KKY19TM1&t=634208886757546466"   String<br>
            StartEditingInAdvancedForm   True   Boolean<br>
            StartInsertingInAdvancedForm   False   Boolean<br>
    +       Style   {System.Web.UI.CssStyleCollection}   System.Web.UI.CssStyleCollection<br>
            TabIndex   0   Short<br>
            TagKey   Div {25}   System.Web.UI.HtmlTextWriterTag<br>
            TagName   "div"   String<br>
    +       TemplateControl   {ASP.calendar_calendar_aspx}   System.Web.UI.TemplateControl<br>
    +       TemplateControlVirtualDirectory   {/Website/calendar/}   System.Web.VirtualPath<br>
            TemplateSourceDirectory   "/Website/calendar"   String<br>
            TimeLabelRowSpan   2   Integer<br>
    +       TimelineView   {Telerik.Web.UI.TimelineViewSettings}   Telerik.Web.UI.TimelineViewSettings<br>
    +     
     TimeSlotContextMenus   {Telerik.Web.UI.RadSchedulerContextMenuCollection}   Telerik.Web.UI.RadSchedulerContextMenuCollection<br>
    +       TimeSlotContextMenuSettings   {Telerik.Web.UI.ContextMenuSettings}   Telerik.Web.UI.ContextMenuSettings<br>
    +       TimeZoneOffset   {00:00:00}   System.TimeSpan<br>
            ToolTip   ""   String<br>
            UniqueID   "M$MP$RS"   String<br>
            UseDefaultAdvancedEdit   False   Boolean<br>
            UseDefaultAdvancedInsert   False   Boolean<br>
            UseHorizontalScrolling   False   Boolean<br>
            UsingWebServiceBinding   False   Boolean<br>
            ValidationGroup   "M_MP_RS"   String<br>
    +       ViewState   {System.Web.UI.StateBag}   System.Web.UI.StateBag<br>
            ViewStateIgnoresCase   False   Boolean<br>
            Visible   True   Boolean<br>
    +       VisibleAppointments   {Telerik.Web.UI.AppointmentCollection}   Telerik.Web.UI.AppointmentCollection<br>
            VisibleRangeEnd   #5/2/2011#   Date<br>
            VisibleRangeStart   #4/25/2011#   Date<br>
    +       VisualTimeZoneOffset   {03:00:00}   System.TimeSpan<br>
            VisualToday   #4/29/2011#   Date<br>
    +       WebServiceSettings   {Telerik.Web.UI.SchedulerWebServiceSettings}   Telerik.Web.UI.SchedulerWebServiceSettings<br>
            WeekLength   7   Integer<br>
    +       WeekView   {Telerik.Web.UI.WeekViewSettings}   Telerik.Web.UI.WeekViewSettings<br>
    +       Width   {}   System.Web.UI.WebControls.Unit<br>
    +       WorkDayEndTime   {17:00:00}   System.TimeSpan<br>
    +       WorkDayStartTime   {08:00:00}   System.TimeSpan<br>
    +       RecurrenceParentID   398628 {Integer}   Object<br>
            RecurrenceRule   ""   String<br>
            RecurrenceState   Exception {3}   Telerik.Web.UI.RecurrenceState<br>
    +       Resources   {Telerik.Web.UI.ResourceCollection}   Telerik.Web.UI.ResourceCollection<br>
            Start   #4/29/2011 8:00:00 AM#   Date<br>
            Subject   "test"   String<br>
            ToolTip   "test"   String<br>
    +       ViewState   {System.Web.UI.StateBag}   System.Web.UI.StateBag<br>
            Visible   True   Boolean<br>





  2. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 04 May 2011 Link to this post

    Hello Joona,

    You can turn the occurrence in a separate appointment if you make it as exception to the recurrence rule of the RecurrenceMaster appointment.
    You can achieve this using the following:
    Copy Code
    // with this method a RecurrenceException appointment is created
    var apt = RadScheduler1.PrepareToEdit(occurence, false);
     
    //... any editing of the appointment goes here
    // for example you can edit the subject: apt.Subject = apt.Subject + " x";
    //...
     
    // here the RecurrenceException is being added to the recurrence rule
    // and an actual appointment is created and saved in the source
    RadScheduler1.UpdateAppointment(apt);

    Probably you missed the final stage - Scheduler.UpdateAppointment(appointment)?


    Regards,
    Nikolay Tsenkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  3. Joona
    Joona avatar
    5 posts
    Member since:
    Feb 2011

    Posted 04 May 2011 Link to this post

    Hi,
    What I'm trying to achieve is to call method ShowAdvancedEditForm so that I can begin to create the exception from UI.
    So I would like to do something like this:
    var apt = RadScheduler1.PrepareToEdit(occurence, false);
    Me.RS.ShowAdvancedEditForm(apt,false);

    If I would call RadScheduler1.UpdateAppointment(apt); it would actually make the exception already?

    However this always opens the series not the exception create view.
    So my question is: Which kind of appointment object changes I would have to make so that ShowAdvancedEditForm  would open a view to create an exception to the series?



    BR
    Joona
  4. Nikolay Tsenkov
    Admin
    Nikolay Tsenkov avatar
    734 posts

    Posted 10 May 2011 Link to this post

    Hello Joona,

    "However this always opens the series not the exception create view."
     - Please, post an example reproducing this.


    Regards,
    Nikolay Tsenkov
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

  5. Joona
    Joona avatar
    5 posts
    Member since:
    Feb 2011

    Posted 26 May 2011 Link to this post

    Hi,

    I've attached some screenshots from our UI so in file "right_way_edit_only_for_give_date.png" is opened from calendar component where it asks does user want to edit series or only occurence for given date.

    "series_edit.png" is screenshot what happens if I try to open occurence through preparetoedit and showadvancedform method.

    I think you could get showadvancedform to understand that it needs to open occurence for given date and not the series by changing some properties of the occurence object, like set some flags right?

    BR
    Joona
  6. Mikko Mertanen
    Mikko Mertanen avatar
    6 posts
    Member since:
    Jul 2009

    Posted 26 Jan 2012 Link to this post

    Any solutions for this?
    We still have the same problem. We have a recurring appointment without any exceptions. Then we have a grid displaying all the occurrences of that appointment. On the grid row we have id of the appointment, the occurrence datetime and a link to our page having scheduler control. When clicking that link, we would like to open the page and the scheduler on the page in edit mode for an occurrence of the appointment, so that when we save the changes it would create an exception for that occurrence to the series. Opening of the edit form should happen on server side, so that we load the page, set the scheduler to the edit mode and show the occurrence there.
    The problem is now that we have just the series and one id for the series. We load that appointment from database using the id. When we open the edit mode with  RS.ShowAdvancedEditForm(appointment, false), we still get the series there as editable, not just the occurrence. How do we tell the scheduler, that we want to edit the occurrence for that specific datetime?
  7. Peter
    Admin
    Peter avatar
    6637 posts

    Posted 30 Jan 2012 Link to this post

    Hi Miklko,

    We haven't done any progress on this issue, because we haven't been able to replicate it locally. Can you open a support ticket and send us a sample of this? Also, which is the exact version that you use for testing?

    Kind regards,
    Peter
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
Back to Top