Please start using our more robust New Forum, we have put this old forum in archive mode. Thanks.


Welcome Guest Search | Active Topics | Log In

2 Pages<12
Tag as favorite
Bring all tasks into view
Raja - RadiantQ
#11 Posted : Wednesday, April 23, 2014 7:15:06 AM

Posts: 314

Magnus,

Let us make sure we are on the same page. We suspect we might have misunderstood your response on Apr 17.

So, our update on Apr 4th shows how to bring tasks into view when ResizeToFit is set to true. We also mentioned that there is no support for bringing the tasks into the "visible portion" of the view with ResizeToFit set to false.

Could you confirm that this is what you are still trying to achieve?
Thanks & Regards,
Rajagopal.
magnus.sundstrom
#12 Posted : Wednesday, April 23, 2014 7:24:34 AM

Posts: 91

Yes, that is still what we're trying to achieve. This function is totally useless if it removes the ability to scroll. I don't understand how it can be so difficult to achieve this...
Raja - RadiantQ
#13 Posted : Friday, April 25, 2014 10:32:01 AM

Posts: 314

Magnus,

We are taking a closer look on this, we will update you soon.
Thanks & Regards,
Rajagopal.
Raja - RadiantQ
#14 Posted : Friday, May 02, 2014 11:45:53 AM

Posts: 314

Magnus,

The following code will help you to bring the required range into view with ResizeToFit as false,
Code:
$("#bringAllTasksInView").click(function () {
    $gantt_container.GanttControl({
        BaseTimeUnitWidthMinimum: 0.1
    });
    var ganttChart = $GanttChart.data("GanttChart");
    $GanttChart.GanttChart({ ResizeToFit: true });
    ganttChart.SetStartTime(ganttControl.Model.Activities.StartTime.clone().addDays(-7));
    ganttChart.TrySetEndTime(ganttControl.Model.Activities.EndTime.clone().addDays(7));

    $GanttChart.GanttChart({ ResizeToFit: false });
    var diff = new RQTimeSpan(ganttChart.options.AnchorTime - ganttChart.VisualStartTime.Date());
    var adjustedTime = ganttChart.options.AnchorTime.clone().addTimeSpan(diff);
    ganttChart.BringTimeIntoView(adjustedTime);
});
Thanks & Regards,
Rajagopal.
magnus.sundstrom
#15 Posted : Tuesday, May 06, 2014 6:38:30 AM

Posts: 91

Thanks, that worked well. Except it doesn't work with printing.
Raja - RadiantQ
#16 Posted : Friday, May 09, 2014 11:08:02 AM

Posts: 314

Magnus,

You don't need to change the the gantt's chart range for printing. You can customize the chart range which needs to be printed like we said in this forum and UG.


We have sent the latest source to your email. We made some changes related to printing, We hope it might resolve your issue as well.
Thanks & Regards,
Rajagopal.
magnus.sundstrom
#17 Posted : Monday, May 12, 2014 7:31:28 AM

Posts: 91

This is what I meant by "doesn't work with printing": If you run the code you posted above and then just call your print function, the tasks are no longer in view in the printout.
Thanks, we'll try the update.
magnus.sundstrom
#18 Posted : Thursday, May 15, 2014 4:40:59 AM

Posts: 91

We've tried version 4.0.20 that you sent. New issues:

* The Gantt is now 32px higher than before. This means it doesn't fit in our iframe anymore. Why did this happen? Is this a mistake or a permanent change, so we should adapt our iframe height to it?
* The left table pane takes up too much width again. It was better in 4.0.18 where the right pane gets as much width as possible.
* Using the bringAllTasksInView function you posted above together with 4.0.20 cuts the longer taskbars off to the right, especially in printouts (meaning all tasks are not actually in full view).
Raja - RadiantQ
#19 Posted : Saturday, May 17, 2014 9:22:19 AM

Posts: 314

Magnus,

1)We tested with our SampleBrowser where the gantt is used within "iframe". We can't really reproduce this issue. Can you please share the sample with us at least with some screenshots?

2)We apologies for this issue, we have sent the latest version which fixes this issue.

3)Could you please clarify this - Are you saying the tasks are shown correctly in the gantt chart (in the visible portion) but while printing some portion gets cut off?
Thanks & Regards,
Rajagopal.
magnus.sundstrom
#20 Posted : Monday, May 19, 2014 3:15:11 AM

Posts: 91

1) Well for some reason the resize event isn't triggered when the gantt loads anymore, and that's where we set the height. If we trigger resize manually in the ready event it works as before.

2) Looks good now, thanks!

3) In the latest version you sent this finally works!
2 Pages<12
Tag as favorite
Forum Jump  
Please Email support@radiantq.com for any issues

ugg boots outlet cheap ugg sale ugg boots clearance ugg boots sale ugg boots cheap ugg boots for women uggs for cheap ugg shops cheap ugg boots cheap uggs Official Ugg Outlet ugg Store Buy Cheap UGGs ugg boots uk ugg boots usa ugg Online uggs on sale ugg outlets cheap ugg boot Discount UGG Boots discount uggs