Invalid argument

Hi,

I am trying to couple the scheduleControl to an Exchange Calendar. I wrote all the classes like the DataProvider and al the others in vb.net.
But when I doubleclick an appointment, the window to edit the appointment comes up. But when I click on Save I get an error:"InvalidArgument=Value of 107 is not valid for selectedindex"
The number 107 seems to be linked with the appointment. Every appointment gets an other number in that error.


I also see that item SaveModifiedItem method of the dataprovider is not executed.

I hope you can help me.

Jan De Clerck


1 Reply

AR Arulpriya Ramalingam Syncfusion Team April 5, 2020 06:17 PM UTC

Hi Jan, 
 
Thank you for your interest in Syncfusion products. 
 
The reported issue might be occurred due to the UniqueId for an appointment was not updated at your end. So, we would suggest that you to set the UniqueID for appointments by using the GetUniqueID() method of ScheduleDataProvider. 
 
Example code 
 
var appointment1 = scheduleProvider.MasterList.NewScheduleAppointment(); 
appointment1.StartTime = new DateTime(2019, 11, 25); 
appointment1.EndTime = new DateTime(2019, 12, 01); 
appointment1.MarkerValue = 2; 
appointment1.UniqueID = (appointment1 as ArrayListAppointment).RecurrenceRuleID = scheduleProvider.GetUniqueID(); 
appointment1.Subject = "App1"; 
appointment1.LabelValue = 3; 
appointment1.AllDay = true; 
scheduleProvider.MasterList.Add(appointment1); 
 
Please get back to us, if you need any further assistance. 
 
Regards, 
Arulpriya 


Loader.
Up arrow icon