I have found something I’ve been looking for quite some time now. A solution to extending the standard gantt view in SharePoint. Especially to extend the gantt view itself, not the task list beneath it.
On this site I have found a jQuery script that does the trick. It adds 3 buttons to the gantt view menu bar to extend or minimize the view and to hide or show the task list. This solution can be very useful when you want to have a complete overview of all tasks. See picture below:
How to install:
1. create a project tasks list
2. when you have opened the list go to Site actions > edit page
3. add a Content editor web part
4. for this new web part choose Edit > Modify shared web part
5. in the taskpane open Source Editor and paste the script you find on the page I linked to
6. hide this Content editor web part. Therefore open Layout in the taskpane and choose Hidden
7. click Ok and now your gantt view web part will have 3 buttons to do the tricks.



October 5th, 2009 at 1:48 AM
I bookmarked this link. Thank you for good job!
April 22nd, 2010 at 10:00 AM
Hi, i’ve tested this script in a new task project list, and everything is ok, but my problem is, I have a Custom List with a Gantt view, I included the script in this list following the instructions and , only appears the buttons. How can I use this script in other kind if list?
Are there any relation in the script with the kind of list?
Thanks a lot, and good job!!
April 23rd, 2010 at 11:09 AM
Hi Berto,
Yes there is a relation in the script. There are several links to “GanttTable” so maybe if you change that to an other list name (did not test it myself) you might be able to get the buttons on other lists.
Regards,
Marc
May 6th, 2010 at 1:32 AM
Hi — this code is great fun and thanks for writing this article and pointing to the code
I am having a problem with the chart and task list: they stretch out far to the right, and I have to scroll to see all the data. How can I fix this?
Thanks again!
Jeanne
p.s. using IE 7.
May 6th, 2010 at 10:19 AM
Hello Jeanne,
I have not used this solution for a while but maybe it is the easiest way to just set the width of the webpart in pixels? If this is not a suitable solution you should contact the author of the code. Maybe he/she can help you.
Regards,
Marc
June 1st, 2010 at 5:57 AM
googd thanks a lot,this is very useful!!
July 6th, 2010 at 3:54 AM
Hi there, amazing site. I believed the topics you posted on have been incredibly interesting. I tried to add your RSS to my feed reader and it a few. take a look at it, hopefully I can add you and stick to.
May 4th, 2011 at 11:41 AM
Hi Guys, this article looks great. However I am trying to use OOB Gant View and the web part is just not appearing! It is definately configrued correctly but i just can’t see it. Any ideas? Your help would be greatly appreciated. Thanks
May 9th, 2011 at 7:52 AM
Hi mark,
As far as I know this script is only for SharePoint 2007, so might that be the problem? Otherwise I have these questions:
Is the Gantt web part not appearing on the page when you add it? Or is it not appearing after putting the CEWP on the page with the script in it?
With the little information you gave me I cannot determine what the problem can be. Can you describe in detail what you have done?
Thanks.
May 18th, 2011 at 4:46 PM
Hello: I love this idea and would like to get it to work on my Gantt Chart. I entered the code as indicated but the only button that is working is the Toggle list the other buttons are not doing anything. Can you please help me out. Thanks
August 5th, 2011 at 4:55 PM
i cant find the code!
where is it?
can u post the url?
tks in advance