Hello,
I am using a column chart to display information from a SQL database. The chart has to load after the user selects a value from a dropdown list, but the chart is loading as soon as the page loads and is giving me the error: "Data Not Available. Please call UltraChart.data.databind() after setting valid data source." After a value from teh dropdownlist is selected the correct information is displayed on the chart. But how do I get the chart to not load before selecting something from the dropdownlist.
I have used
Me.ChartGenre.Data.DataBind()
in the SelectedIndexChanged procedure of the DropDown. and not in the Page_load sub
Thanks.
Alrit thanks, this works.
Ok. In this case you can try something like:
{
this.UltraChart1.DataSource = DemoTable.Table();
}
else
So the first time when the page loads the chart won't be displayed.
Thank You.
I've tried that but the chart loads before any value is selected from the Dropdown. I need the chart to load after a value is selected from the dropdownlist.
Thanks
You can try calling:
Me.ChartGenre.Data.DataSource = GetColumnData()
in the Page_LoadComplete.