10095 : Want to disable clicking and dragging on the datescaler

Question

 We wanted to disable clicking and dragging on the datescalar. so We tried but failed by following reason:We failed to find the ‘OnBeforeScaleOrSpanChange’ event and the ‘BeforeScaleOrSpanChangeArg’ class.

Answer

To disable drag and zoom in the datescaler you can implement the PlexityHide.GTP.DateScaler.OnScaleChangeEvent and set the Start and Stoptime of the scaler to the Values that you want to be fixed.

You can also set the DateScaler.LowerBound and DateScaler.UpperBound to limit the date time values were you want you limits.

(Why the OnBeforeScaleOrSpanChange could not be found is not really understood. It was probably an early version problem)

Leave a Reply