Hi,
i have created a radhtmlchart dynamically using c# code , now i want to create OnClientSeriesClicked event for this chart and through this event i want to call a java script function ,
what i am doing is that i am creating radhtmlchart using c# code and adding it to panel, this i have achived so far but now i want that when we click on the series of the chart some java scrip funtion should fire, i am not getting clear idea how to achive this .
till now what i have done is below (just a refernce).
create chart()
{
RadHtmlChart1 = new RadHtmlChart();
StyleChart();
RadHtmlChart1.OnClientSeriesClicked += new EventHandler(this.SeriesClicked);
panel p = new panel();
p.controls.add(RadHtmlChart1 )
}
private void SeriesClicked(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(this.GetType(), "print", "<script>RadHtmlChart1_SeriesClicked();</script>");
}
but i am getting a runtime exception if iam doing this way ("Microsoft JScript runtime error: 'System' is undefined");
i have created a radhtmlchart dynamically using c# code , now i want to create OnClientSeriesClicked event for this chart and through this event i want to call a java script function ,
what i am doing is that i am creating radhtmlchart using c# code and adding it to panel, this i have achived so far but now i want that when we click on the series of the chart some java scrip funtion should fire, i am not getting clear idea how to achive this .
till now what i have done is below (just a refernce).
create chart()
{
RadHtmlChart1 = new RadHtmlChart();
StyleChart();
RadHtmlChart1.OnClientSeriesClicked += new EventHandler(this.SeriesClicked);
panel p = new panel();
p.controls.add(RadHtmlChart1 )
}
private void SeriesClicked(object sender, EventArgs e)
{
ClientScript.RegisterStartupScript(this.GetType(), "print", "<script>RadHtmlChart1_SeriesClicked();</script>");
}
but i am getting a runtime exception if iam doing this way ("Microsoft JScript runtime error: 'System' is undefined");