Read current pan value

2 posts, 0 answers
  1. Borislav
    Borislav avatar
    21 posts
    Member since:
    Nov 2016

    Posted 22 Oct 2017 Link to this post

    Hello,

    can you tell me how to read current pan values? I need it for the purpose of storing it in a variable and restoring pan settings afterwards.

  2. Dimitar
    Admin
    Dimitar avatar
    2483 posts

    Posted 23 Oct 2017 Link to this post

    Hello Borislav,

    You can get the pan values with the following code:
    private void radButton1_Click(object sender, EventArgs e)
    {
        var chart = radChartView1.View as IChartView;
        Console.WriteLine(chart.PlotOriginX);
        Console.WriteLine(chart.PlotOriginY);
    }

    I hope this will be useful. 

    Regards,
    Dimitar
    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top