Hi,
In our application we are using UltraMonthViewSingle and UltraCalendarInfo .
In one of the operations,we are clearing all the appointments of the UltraCalendarInfo.It was working
properly in the initial days.But now we are getting an exception.The message is mentioned below.
"Index 0 is either negative or above rows count"
When we tried find to out the reason behind this,we came to know that this is happening once the number of appointments are 180 or above.
To confirm this,we removed some appointments and tried
UltraCalendarInfo.Appointments.Clear().This executed without any exception.
Is there any limit for the number of appointments in 'UltraCalendarInfo'?
The code segment which loads the UltraCalendarInfo is given below
ultraCalendarInfo.DataBindingsForAppointments.SetDataBinding(dataset, string.Empty);
The code segment doing clear operation is given below.
if (ultraCalendarInfo.Appointments.Count > 0) { ultraCalendarInfo.Appointments.Clear(); }
Is there any solution for this issue?
Thanks,
Jithesh
As this method takes 17-20 seconds to clear out the 2,200 appointments we are using, I kept looking for another solution. What I found was if I use:
calInfo.ResetDataBindingsForAppointments()
this cleared all of the appointments. I just needed to reload my data adapter and rebind the calInfo object after this and I am good to go in about 2 seconds.
While the error occurs when appointments are cleared, I think this issue has to do with owners.
I am using 12.2.2006 in VS 2010 and have this same issue but have multiple owners. Is there any update please? Thank you
I have added replaced
calInfo.Appointments.Clear()
with
calInfo.Appointments.RemoveAllAppointmentsForOwner(calInfo.Owners(1))
which seems to work. Fortunately, we are using only the 1 owner. BUGGY!
I am getting this problem as well. We currently have 1537 appointments. We are using 11.2 CLR 4.