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

How to add the graph in table cell?

2 Answers 163 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
A.p.kumar
Top achievements
Rank 1
A.p.kumar asked on 21 Jul 2016, 08:08 AM

How to add  the graph in table cell ?? ..( like Tablelayout panel )

i want to add a more than 10  graph programmatically in row and column manner.so tried to add the graph into table cell , but it not accept the graph control.

please give any idea .....

2 Answers, 1 is accepted

Sort by
0
A.p.kumar
Top achievements
Rank 1
answered on 26 Jul 2016, 11:47 AM

I'm struggling  past 4 days. Depend upon My application Function Sometime I want Add More graph and less. So i trying to Create Runtime table and insert the graph in each cell.

Actually i programmatically i created  an array of Graph list and then put into table each cell.The thing is showing Only Text(like  Telerik.reporting.Graph ) in the Cell , Because the table cell is text box right ..

is that any way to create any Custom table ??????

EX:   my table what i want .

.-------------------------------------------------------------------------------------------------------------------,

'--------------------------------------------------------------------------------------------------------------------"

|                  GRaph1                                     |              GRaph2                                             |

| ------------------------------------------------------------------------------------------------------------------- |

|                  GRaph3                                    |               GRaph4                                              |

|---------------------------------------------------------------------------------------------------------------------

................................

......... like it's goes on ..

 

0
Katia
Telerik team
answered on 26 Jul 2016, 12:56 PM
Hi ,

If the Graph items share the same data source you can test the approach suggested in How to: Create Multi-Column Report - Across the Page and Then Down kb article. Bind the List item mentioned in this article to your data source and then reuse it for the Graph items as suggested in Use DataObject as a for nested data items (Table, List, Crosstab, Graph) help article.

You can also add a report parameter of type boolean and use it to control the visibility of Graph items. For example, set property of the Graph to an expression = Parameters.ShowGraph.Value via bindings.


In general, it is not recommended to change the report definition at run-time. In case, there is a specific need to create the reports with code, it is recommended first to test your scenario in the Designer and then review the automatically generated code in .Designer.cs(vb) file that you can use as a sample and modify according to your requirements.


Regards,
Katia
Telerik by Progress
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Tags
General Discussions
Asked by
A.p.kumar
Top achievements
Rank 1
Answers by
A.p.kumar
Top achievements
Rank 1
Katia
Telerik team
Share this question
or