Ticket T574638
Visible to All Users

Rendering Scheduler with more than thousand appointments

created 7 years ago

As you can see on the attached image, our customer plan their tasks on a monthly view for as many resources as possible.
Since there are more than one thousand appointments visible, every operation like selection or navigation becomes very slow.
Rendering this amount of graphic takes time.
It takes approx. 12 seconds to navigate from left to right using the right arrow key. Also selecting several day cells takes too long.
I'm using an own DrawEvent method. I already changed the Canvas.DrawText to Windows.DrawText which is 40% faster.

Compared to your default rendering, my method takes 20-25% more time due to several graphical operations and because i also use
an own DrawContent method to colour weekends, holiday, background of resources groups, …

Is there a way to improve the speed of rendering?

Any suggestions appreciated
Jean-Luc

Answers approved by DevExpress Support

created 7 years ago

Hello Bernd,

I am afraid there is no way to significantly improve the performance in this case. A common solution is to reduce the number of resources shown simultaneously by using the OptionsView.ResourcesPerPage property. However, I am not sure that this approach is suitable in your scenario. From what I gather, you need to see all of the available resources without scrolling.

    Show previous comments (2)
    DevExpress Support Team 7 years ago

      Hello Erhan,

      Indeed, the Scheduler's drawing performance is not high when it is necessary to draw many events. The point is that the Scheduler control has many visual elements (texts, borders, textures, icons) that are drawn one by one as layers. We are aware of this specificity. Perhaps, we will be able to improve the drawing speed in future builds.

        Hello Erhan

        I attached my CustomDrawEvent Code. It's big, comments are in german. You will find the several windows.drawtext
        i substituted from the cxCanvas.DrawText that have a lot of overhead.
        I draw all events with this procedure.

        Regards

          Hello Bernd,

          Thank you very much. Have a nice day.

          Best Regards

          Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

          Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.