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
Hello,
I have test your scenario with Infragistics 11.1 service release 2026 and was not able to reproduce this behavior. Please see attached sample. So please test your application with the mentioned version of Infragistics and let me know for the result.
Please let me know if you have any further questions.
Hi Hristo,
Couldn't test this in our application as it will create problems for us if we use 11.1 controls. Will update you after testing.(our current version is 10.2)
I am just checking about the progress of this issue. Did you solve your issue accordingly to the information that I provided you?
Let me know if you need any further assistance.
I am getting this problem as well. We currently have 1537 appointments. We are using 11.2 CLR 4.
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!
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