This is a migrated thread and some comments may be shown as answers.

RadScheduler always setting recurrence?

3 Answers 157 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Amanda
Top achievements
Rank 1
Amanda asked on 20 Feb 2009, 02:10 PM
Good morning!  I'm working on a project using the RadScheduler and I keep getting this problem... when I try to delete an appointment, it asks if I want to delete the series or just one occurence.  Whenever I post a new appointment, regardless if I set it to recurring or not, it sets itself as a recurring appointment.  Therefore, I cannot delete appointments by one event, I get an error saying:

Cannot parse parentAppointment recurrence rule during delete operation. Appointment ID is 28, parentAppointment ID is 28.

I'm trying to figure out what I'm doing wrong and why it's still setting appointments as recurring.  I used the examples in the live demos to help me with this, but it's still happening.  Also, the delete icon is on the lefthand side instead of the right, any ideas on why this happened as well?

The last thing that's happened is I cannot get my Ajax working, I've tried and it doesn't show the loading panel.  Any suggestions on that as well?

I've attached my project, but cannot send the database as it is too large.  Any help is appreciated, thanks!

Amanda

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 23 Feb 2009, 01:16 PM
Hello Amanda,

We will address this issue in the support ticket that you started. I have requested that you send us the data table definitions so we can run your demo project and test it.

Regards,
Peter
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
aquino
Top achievements
Rank 1
answered on 25 Mar 2009, 05:16 PM
I have the same problem.
0
Amanda
Top achievements
Rank 1
answered on 25 Mar 2009, 05:19 PM
Hi aquino,

This response from Peter from my support ticket solved my problem...

Please, modify your provider class as follows:
using (DbDataReader reader = cmd.ExecuteReader())  
                {  
                    while (reader.Read())  
                    {  
                        Appointment apt = new Appointment();  
                        apt.Owner = owner;  
                        apt.ID = reader["id"];  
                        //apt.resource_id = Convert.ToString(reader["resource_id"]);  
                        apt.Subject = Convert.ToString(reader["comments"]);  
                        apt.Start = DateTime.SpecifyKind(Convert.ToDateTime(reader["start"]), DateTimeKind.Utc);  
                        apt.End = DateTime.SpecifyKind(Convert.ToDateTime(reader["end"]), DateTimeKind.Utc);  
                        apt.RecurrenceRule = Convert.ToString(reader["recurrence_rule"]);  
                        apt.RecurrenceParentID = reader["recurrence_parent_id"] == DBNull.Value ? null : reader["recurrence_parent_id"];  
 
                        if (apt.RecurrenceParentID != null)  
                        {  
                            apt.RecurrenceState = RecurrenceState.Exception;  
                        }  
                        else 
                            if (apt.RecurrenceRule != string.Empty)  
                            {  
                                apt.RecurrenceState = RecurrenceState.Master;  
                            }  
 
                        apt.Resources.Add(new Resource("Owner""Username", reader["username"].ToString()));  
                        LoadResources(apt);  
                        appointments.Add(apt);  
                    }  
                } 

You have used:
 if (apt.RecurrenceRule!= null)     
                        {     
                            apt.RecurrenceState = RecurrenceState.Exception;     
                        }     
 

which will naturally lead to the behavior that you have experienced.
Tags
Scheduler
Asked by
Amanda
Top achievements
Rank 1
Answers by
Peter
Telerik team
aquino
Top achievements
Rank 1
Amanda
Top achievements
Rank 1
Share this question
or