Search code examples
activexteechart

Teechart Data Editing disable


Can anyone let me know how we can restrict the user to change the data for for series or whether we can disable it.

Thanks Akshay


Solution

  • Given such a generic answer and not knowing the nature of your applications we can't provide a specific answer. However, as a general rule of thumb, don't grant users access to the chart editor nor any functionality that would allow them to use data.

    Also, this has been implemented for next TeeChart VCL/FMX release: http://bugs.teechart.net/show_bug.cgi?id=484#c1

    This hasn't been implemented for the ActiveX version though now, build 2014.0.0.1 from 19th June. We will add it for the next maintenance release. It should be something like this:

    TeeEditor1.Options.DataEditing = False
    

    Other Current alternatives are:

    1. You can use the ChartGrid component and set it to read-only: ChartGrid1.ReadOnly = True
    2. Hiding Data tab in TeeEditor: TeeEditor1.ShowPages.SeriesData = False