This is a migrated thread and some comments may be shown as answers.

RadGridView with Bar/Pie chart embeded

1 Answer 79 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Mingxue
Top achievements
Rank 1
Mingxue asked on 28 Apr 2016, 06:50 PM

Hi,

I have a RadGridView, what I need is to style the cell so that when data type is some series, it can be represented with Bar/line/Area or Pie chart.

For example, if the data type is basic types, int/string/bool etc, it just shows as is. And if the data type is series, then by default, uses Pie chart. On top of that, user can change the representation from Pie to Bar/line/Area with a drop down selection.

I hope my question is clear and this is the correct place you could help me with it.

 

Many thanks.

Mingxue

1 Answer, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 02 May 2016, 10:33 AM
Hello Mingxue,

You can try working with CellTemplateSelector and depending on the value of a property to display different control that represents it. 
If you want to have a different view for a particular column, you can just define a CellTemplate for it and add the chart inside. 

Regards,
Maya
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
GridView
Asked by
Mingxue
Top achievements
Rank 1
Answers by
Maya
Telerik team
Share this question
or