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

[Solved] Dashboard: GridView and Multiple Charts

3 Answers 111 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Roy
Top achievements
Rank 1
Roy asked on 05 Dec 2013, 06:44 PM

I'm working on a Store app that consists of several charts. I've already developed the charts and have them rendering using the chart control in the various forms.

I have been asked to bring these together in an app that allows the user to scroll left and right through each of the charts.

Every example I have found for using a GridView data binds the content of the GridView to item templates.

What I'm trying to get my head round is how I could please these chart controls directly in to a GridView.

Any help would be greatly appreciated.

Cheers,

Roy







3 Answers, 1 is accepted

Sort by
0
Rosy Topchiyska
Telerik team
answered on 06 Dec 2013, 01:51 PM
Hello Roy,

Thank you for your question.

You can put the charts directly into the GridView Items collection. I have attached a sample application that demonstrates how to do that.

I hope this was useful. Please, do not hesitate to contact us if you have further questions.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Roy
Top achievements
Rank 1
answered on 06 Dec 2013, 02:04 PM

Many thanks for this. I am studying now.

Couple of interesting points about the app I am building:

1. The charts are not all the same. I have several bar charts a line chart, a couple of combined (bar/pie) charts

2. Some of these have additional options - like a dropdown to select chart grouping

Can I set up multiple GridView.Items to handle different chart types?

Cheers,

Roy

0
Rosy Topchiyska
Telerik team
answered on 09 Dec 2013, 11:43 AM
Hello Roy,

Thank you for contacting us.

The Items collection of the GridView can contain any object (if the object is not UI element, its string representation will be displayed). All elements that are direct children of the GridView.Items will be added as separate items. If you wish to add more than one element to a GridView Item, then you have to put them in a proper panel. For example if you use a StackPanel, the whole panel with its children will be added to the same GridView Item. I have attached a sample application that demonstrates this scenario.

I hope this was useful. Feel free to contact is if you any other questions.

Regards,
Rositsa Topchiyska
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
General Discussions
Asked by
Roy
Top achievements
Rank 1
Answers by
Rosy Topchiyska
Telerik team
Roy
Top achievements
Rank 1
Share this question
or