can I display charts in a list or a table of charts and add charts programmatically to that list?

1 Answer 120 Views
ChartView GridView ListView
Ammar
Top achievements
Rank 1
Iron
Ammar asked on 20 Sep 2022, 01:41 PM

Hi 

I would like to create charts programmatically  and display them in a table of two columns (like the attached photo) and and be able to drag and drop the displayed charts to change their locations. Is there a way to do this using the UI components for WinForms?

 

1 Answer, 1 is accepted

Sort by
1
Accepted
Dess | Tech Support Engineer, Principal
Telerik team
answered on 22 Sep 2022, 07:27 AM

Hello, Ammar, 

According to the provided screenshot, it is suitable to use the MS TableLayoutPanel for achieving the rows and columns layout. The following thread demonstrates how to create a TableLayoutPanel programmatically:
https://stackoverflow.com/questions/17042115/create-tablelayoutpanel-programmatically-in-c-sharp  
https://www.c-sharpcorner.com/uploadfile/mahesh/tablelayoutpanel-in-C-Sharp/ 

Then, in each cell of the TableLayoutPanel, you can create a RadChartView control and add it to the cell. The following article demonstrate how to populate the chart with data:
https://docs.telerik.com/devtools/winforms/controls/chartview/series-types/bar 
https://docs.telerik.com/devtools/winforms/controls/chartview/series-types/line 
https://docs.telerik.com/devtools/winforms/controls/chartview/series-types/polar 

I hope this information helps. If you need any further assistance please don't hesitate to contact me. 

Regards,
Dess | Tech Support Engineer, Principal
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Ammar
Top achievements
Rank 1
Iron
commented on 22 Sep 2022, 01:35 PM

Thanks Dess. Much appreciated
Tags
ChartView GridView ListView
Asked by
Ammar
Top achievements
Rank 1
Iron
Answers by
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or