Can I add Charts to ListControl ?

1 Answer 63 Views
ChartView ListControl
Ammar
Top achievements
Rank 1
Iron
Ammar asked on 21 Sep 2022, 10:14 AM
Can I add charts to a ListControl ?

1 Answer, 1 is accepted

Sort by
0
Maria
Telerik team
answered on 23 Sep 2022, 01:00 PM

Hello Ammar,

Thank you for your question!

It's possible to add charts to ListControl items. You can achieve that using custom items. First, you need to create your own custom item which derives from RadListVisualItem. Then you can subscribe to the CreatingVisualListItem event where you can replace the default visual item with your own. I am sending you a sample project and a link to the documentation as well: 

As a side note, I am using RadHostItem to wrap the RadChartView control and add it to the Children collection which accepts only elements. More information can be found in the Use Control inside an Element help article.

Could it be possible to provide more details about what you trying to achieve, so we could suggest a better control than using ListControl if that didn't work for you?

Regards,
Maria
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/.

Tags
ChartView ListControl
Asked by
Ammar
Top achievements
Rank 1
Iron
Answers by
Maria
Telerik team
Share this question
or