Hi,
unfortunately I have a problem.
The scenario is about 25/30 resources, all the full year and
60 visible days. The software that I am developing is an hotel room
planner so there are so many items to display "per page".
I wrote "per page" because the loading is paginated, when I move
left/right/up/down I load only the visible resources and items.
By the way, I noticed that the permormance is very poor to rebuild the schedule (I used BeginInit and EndInit, but nothing changes) and the mouse interaction become so slow!
The query to pick up the results run in less than a second but the scheduler
takes 2/3 seconds to clear and rebuild...Any advice to speed up?
I populate data asynchronously so the loop to add items is the following:
VB
Dim _items As New ItemCollection
Dim counter As Integer = 1
For Each row In _dtItems.Rows
If IsDBNull(row!From) = False Then
Dim o As New Appointment()
o.Id = counter
o.HeaderText = row!Name
o.StartTime = row!From
o.EndTime = row!To
o.Resources.Add(.Schedule.Resources(row!ResourceId))
o.AllowMove = False
_items.Add(o)
End If
counter = counter + 1
Next
.Schedule.Items.AddRange(_items)
Thank you.