My Tasks Webpart Size

B

BOBO

Hi all,

after the December cumulative updates and Sharepoint infrastructure
update, the Tasks webpart in project server use a sliding bar if there
are much tasks in the list, instead of showing all the tasks
vertically.
I already tried to set the web part size greater than default, but it
use always the same size to show tasks, and the sliding bar is there,
yet.

it is possibile to force showing more tasks than the default without
need to use the sliding bars?

many Thanks
 
J

.jussi

Since linking is so tedious here and the urls so massive, here's a recap of
the thread.

What you need to do is insert a content editor web part on the my tasks
page. In that web part, you include a javascript snippet (mine is powered by
jQuery, you can either link to google's hosted jquery or upload it to your
own PWA) that will force a resize of the control.

The jQuery script will execute after the sharepoint control scripts have
fired... and
the taskpart grid changes quite a bit. This is what the div's style looks
like when the jQuery script in the content editor web part fires:
OVERFLOW-Y: auto; VISIBILITY: hidden; OVERFLOW-X: auto; WIDTH: 100px

We want it to read
OVERFLOW-Y: visible; VISIBILITY: hidden; OVERFLOW-X: visible; WIDTH: 100px

Which is attained with this script snippet in the content editor web part:

<script
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.1/jquery.min.js"
type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#TaskPart_Grid_Div").attr("style","OVERFLOW-Y: visible; VISIBILITY:
hidden; OVERFLOW-X: visible; WIDTH: 100px");
});
</script>

That's it. Like I said, you may want to upload the jquery to your PWA so
that you don't have to fetch it from Google. :)

This is far from an optimal solution, more of a quick fix. It does make the
control more usable at least.

Hope that helps,
- Jussi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top