Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Chart > Chart does not display data when datasource is reset

Not answered Chart does not display data when datasource is reset

Feed from this thread
  • Posted on Nov 17, 2011 (permalink)

    I have the following code that gets called on form load and when a button is clicked:

    rcSummary.Series.Clear()
    rcSummary.RemoveAllSeries()
    rcSummary.Clear()
    rcSummary.DataSource = PersistenceHelper.GetResponseContentDailySummary(_dbContext, rdtStartDate.Value.Date)

    The chart displays with the proper data when the form loads. If the button is clicked on the form, the chart displays "There is no or empty series".

    I have verified the correct data is returned by the GetResponseContentDailySummary function.

    Any help would be much appreciated,
    -jm

    Reply

  • Giuseppe Giuseppe admin's avatar

    Posted on Nov 22, 2011 (permalink)

    Hello Jeffrey,

    Please, add a call to the DataBind method of RadChart after setting its DataSource property:
    rcSummary.DataSource = PersistenceHelper.GetResponseContentDailySummary(_dbContext, rdtStartDate.Value.Date)
    rcSummary.DataBind()


    Kind regards,
    Giuseppe
    the Telerik team

    Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / WinForms > Chart > Chart does not display data when datasource is reset
Related resources for "Chart does not display data when datasource is reset"

[ Features | Demos | Documentation | Knowledge Base | Telerik TV | Code Library | Step-by-step Tutorial | Blogs | Self-Paced Trainer ]