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

[Solved] asp mvc column charts issue

4 Answers 126 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Abdalla
Top achievements
Rank 1
Abdalla asked on 05 Apr 2012, 12:51 PM
Hello Telerik Team,
I am using telerik asp mvc
i have two partial views each partial view contains column chart ajax binding when i call the 2 partials views in one view 
@Html.Partial("firstView")
@Html.Partial("secondView") 
only the first one is displayed , the second one does not call the function in the controller 
and if i do that :
@Html.Partial("secondView")   
@Html.Partial("firstView")
the second view is displayed , and the firstview doesnot call the function in the controller so is it not possible to user more that telerik column charts in the same page ?

Thank u,

4 Answers, 1 is accepted

Sort by
0
Abdalla
Top achievements
Rank 1
answered on 05 Apr 2012, 01:20 PM
here is sample of the code 
u can access the page localhost/charts
i used in this code pie charts but same result
0
Iliana Dyankova
Telerik team
answered on 09 Apr 2012, 07:51 AM
Hello Abdalla,

Thank you for sending your sample project. I examined it and I think the problem is caused by the names of your Charts. Actually, both of them use .Name("pieChart"), which sets equal ID-s - on the same page you need unique ID-s. 

I updated your project and attached it back. 

Greetings,
Iliana Nikolova
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the Telerik Extensions for ASP.MET MVC, subscribe to their blog feed now.
0
Abdalla
Top achievements
Rank 1
answered on 10 Apr 2012, 10:25 AM
Thank u for ur efforts :)
0
Abdalla
Top achievements
Rank 1
answered on 14 Apr 2012, 12:40 PM
Hello again,

i am using bootstrap tabs and i have 2 tabs each tab contains a column chart "ajax data binding" the first chart renders right the second chart renders below the y axis. this only happens in google chrome it works perfect in firefox and internet explorer.

Thanks for your help
Tags
Chart
Asked by
Abdalla
Top achievements
Rank 1
Answers by
Abdalla
Top achievements
Rank 1
Iliana Dyankova
Telerik team
Share this question
or