10010 : Stop the client from changing the scale

Symptoms

Is it possible to stop the client from changing the scale of the DateScaler (via the drag feature) but still allow them to navigate the times not visible with the Scroll Buttons?

Resolution

Make sure you set the dateScaler.ResizeType=ResizingType.StartLocked or dateScaler1.ResizeType=ResizingType.StopLocked. If you do this the scale will not change when the user resize the control.

The dateScaler.OnScaleChangeEvent is triggered whenever the scale is about to change, implement this event and set the scale back to the desired value; by setting Start and Stop.

You probably want to set the ReScaleWithControl=true to force the user to press the CTRL key to get to the zoom function.

 

 

10013 : GTP.NET.WEB, is it possible to set the gantts start row dynamicly?

Question

In GTP.NET.WEB, is it possible scroll large gantts (350 tasks) or dynamic set the gantts height or the start row/node to be render?
I ask this because in this gantt, some image, like scale image and some task image, does not apper unless I close some large nodes (I have to set the height to 8000px to see all tasks).

Resolution

To control the top node on the web you set the top node on the Gantt component:

Gantt_ASP1.Gantt.Grid.GridStructure.TopNode

To control the left most column you set Gantt_ASP1.Gantt.Grid.GridStructure.Columns.SetLeftCol

Set these values in the Page_Load, and possibly add postbacks on your page to page the content up or down.