Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8919453
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T06:01:43+00:00 2026-06-15T06:01:43+00:00

I am using the devExpress scheduler control . Note what I am trying to

  • 0

I am using the devExpress scheduler control. Note what I am trying to achieve on the following code is to add a recurance to an appointment on code behind. In this example I am doing that when I create a new appointment.

My window consists of a scheduler Control:

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525"
        xmlns:dxsch="http://schemas.devexpress.com/winfx/2008/xaml/scheduler">

    <dxsch:SchedulerControl Name="schedulerControl1" />

</Window>

And code behind consists of:

using System.Windows;
using DevExpress.XtraScheduler;

namespace WpfApplication1
{
    public partial class MainWindow : Window
    {
        public MainWindow() // Constructor
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(MainWindow_Loaded);
        }

        void MainWindow_Loaded(object sender, RoutedEventArgs e) // Fires when window loads
        {
            schedulerControl1.Storage.AppointmentsInserted += new PersistentObjectsEventHandler(Storage_AppointmentsInserted);
        }

        void Storage_AppointmentsInserted(object sender, PersistentObjectsEventArgs e) // fires when a new appointment is added
        {
            Appointment addedAppointment = null;
            foreach (Appointment item in e.Objects)
                addedAppointment = item;

            /*
                I want to set the reinsurance info in here!
                I cant because RecuranceInfo = null!                  
            */
            addedAppointment.RecurrenceInfo.Type = RecurrenceType.Hourly; // <- App Crashes
        }               
    }
}

I do not want to bind the recurrence property of the control.

In other words It will be great if I could create an appointment that starts at 2PM today and repeats daily with no end date. How could I be able to create that appointment on code behind?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T06:01:44+00:00Added an answer on June 15, 2026 at 6:01 am

    Answer is in this link: http://documentation.devexpress.com/#WindowsForms/CustomDocument6201

    basically I had to do:

            Appointment apt = schedulerControl1.Storage.CreateAppointment(AppointmentType.Pattern);
            apt.Start = DateTime.Now;
            apt.End = apt.Start.AddHours(2);
            apt.Subject = "My Subject";
            apt.Location = "My Location";
            apt.Description = "My Description";
    
            apt.RecurrenceInfo.Type = RecurrenceType.Daily;
    
            schedulerControl1.Storage.AppointmentStorage.Add(apt);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to port some code using DevExpress XtraGrid to Wpf. What is
I try using Devexpress Layout-Control (For costume usage). So I want add all item's
I'm writing a Dashboard Application in C#, using DevExpress components. I am trying to
I am using Devexpress's SpinEdit control on a view. There is an event on
I'm using DevExpress LookUpEdit control in my application. I want to set the datasource
I am creating custom code snippet templates using DevExpress' CodeRush. Is there anyway for
I have drawn a checkbox in devexpress grid group row using the code below.
Hi all, I'm using DevExpress XtraGrid control in a C#.Net application. I'mbinding the values
I'm using DevExpress's GridLookUpEdit control in a grid and I want the contents of
Iam using Devexpress aspxgridview control in asp.net. I want to reload the page on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.