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

[Solved] Plot and <%= Html.Telerik().ScriptRegistrar() %>

6 Answers 56 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.
Christopher Salomon
Top achievements
Rank 1
Christopher Salomon asked on 09 May 2010, 04:34 AM
I'm using flot for charting on the same view as the telerik mvc grid I need rendered. Having the ScriptRegistrar call causes plot to stop functioning. The error by firebug is '$.plot is not a function'. I've tried replacing '$' with jQuery.plot and still to no avail. If I remove the script registrar call plot functions correctly but I lose the mvc grid functionality. Is there a workaround?

6 Answers, 1 is accepted

Sort by
0
Atanas Korchev
Telerik team
answered on 10 May 2010, 08:10 AM
Hello Christopher Salomon,

The ScriptRegistrar includes by default jQuery and I suspect this is the problem. Try calling jQuery(false) for the ScriptRegistrar to disable the automatic including.

Greetings,
Atanas Korchev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Christopher Salomon
Top achievements
Rank 1
answered on 10 May 2010, 02:07 PM
Thanks for the response. It still looks like calling .jquery(false) causes the mvc grid not to function but flot still works. I'm not sure if the conflict is due to flot being based on 1.3.2 and the mvc grid on 1.4.2.
0
Accepted
Atanas Korchev
Telerik team
answered on 10 May 2010, 02:12 PM
Hi Christopher Salomon,

Yes, the grid cannot operate with jquery 1.3.2 because it is based on jquery 1.4.2.

Regards,
Atanas Korchev
the Telerik team

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 Public Issue Tracking system and vote to affect the priority of the items.
0
Christopher Salomon
Top achievements
Rank 1
answered on 10 May 2010, 02:22 PM
Thanks for the help.
0
Christopher Salomon
Top achievements
Rank 1
answered on 10 May 2010, 03:19 PM
We just upgraded to jquery 1.4.2 for the entire project and our graphs still work. We also swapped out flot for jqPlot maybe thinking that flot was the issue but we still have the issues with using the graphs and the mvc grid. So, it's not the jquery version that's affecting it.
0
Christopher Salomon
Top achievements
Rank 1
answered on 10 May 2010, 03:24 PM
Scratch that, I just got word from one of my dev's that flot was indeed the culprit and having .jquery(false) on the Registrar call does indeed work. We're sticking with jqPlot for now. Close this forum and thanks again.
Tags
General Discussions
Asked by
Christopher Salomon
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Christopher Salomon
Top achievements
Rank 1
Share this question
or