This is a migrated thread and some comments may be shown as answers.

[Solved] Hiding telerik rad html scattered line series

0 Answers 7 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Daire
Top achievements
Rank 1
Daire asked on 16 Oct 2012, 04:07 PM
Hi,

I was just wondering if it was possible to remove a scattered line series by name? 

ScatterLineSeries movementLine = new ScatterLineSeries();

public
void PopulateChart()
{
movementLine.Items.Add(new SeriesItem(xVal, yValue));
}

protected
void RadButton1_Click(object sender, EventArgs e)
{
        chart.PlotArea.Series.Remove(movementLine);
}

i know that i can remove it by specifying the index, but can i not remove it by name as i have more than one ScatterLineSeries and might not always know the index as if one has been removed before, the indexes for the other ScatterLineSeries
that follow will have changed.

Thanks
Tags
General Discussions
Asked by
Daire
Top achievements
Rank 1
Share this question
or