none
SharePoint 2010 Performance Zoom In Zoom Out Button Gantt View

    Question

  • Hello guys,

    I'v got a question. I've implemented a Zoom In / Zoom Out Button with JavaScript above the Gantt View, but the performace is not that good. When I presse the Buttons in the ribbbon menu it reacts very fast, but the other Buttons react in contrast very slow.

    Should I use another method of implementing?

    Best regards

    Matthias

    Monday, January 13, 2014 8:39 AM

Answers

  • Hi,

    According to your post, my understanding is that you want to customize Zoom In/Zoom Out for the Gantt View.

    Please check that whether there are setTimeout methods in your code.

    Here are some JavaScript functions that you can use for Zoom In /Zoom Out feature.

    function ZoomIn()
    {
         WebPartWPQ1_JSGridController.ZoomInGantt();
    }
    
    
    function ZoomOut()
    {
         WebPartWPQ1_JSGridController.ZoomOutGantt();
    }
    

    “WebPartWPQ1” is the ID of the Gantt View Web Part, you can find it by using F12 IE developer.

    More information:
    http://www.tekritisoftware.com/custom-sharepoint-2010-gantt-view-zoom-out-zoom-in

    Best Regards


    Dennis Guo
    TechNet Community Support

    Wednesday, January 15, 2014 5:09 AM