Profile Picture

Implementing chart control in ASP.Net MVC Razor view engine

Posted By Ashith Rai Nakoor 11 Years Ago

Implementing chart control in ASP.Net MVC Razor view engine

Author
Message
Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi A****h,

Most likely the control cannot create a client host due to a failing request from the server - to check what really happens you can use firebug in Mozilla and inspect the "NET" panel - if some requests to the server fail you'll easily be able to locate that there. Also we noticed that the page already contains jquery so you can experiment whether this is a jquery conflict by using the following code:

 

public void Initialize(NThinChartControl control)

{

control.ServerSettings.JQuery.SourceType = JQuerySourceType.None;

...

}

This will tell the control not to render jquery script as it is already present on the page.

Hope this helps - let us know if the problem persists.

 

 



Best Regards,
Nevron Support Team



Ashith Rai Nakoor
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 4, Visits: 1
What http handlers would I need to configure the application in web.config so that it can run on IIS. I have also attached a sample application which has the same problem. This is the same example you had mentioned at the below url:
http://helpdotnetvision.nevron.com/ThinWeb_Chart_Integrating_In_Mvc.html

Thanks,
A****h.

Attachments
MvcTestApplication.zip (360 views, 9.00 MB)
Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi,

Check whether all http handlers are configured properly in the web.config of the application.



Best Regards,
Nevron Support Team



Ashith Rai Nakoor
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 4, Visits: 1
Hi Team,

I was able to get the thinwebchart control working with ASP.NET MVC razor view engine from Visual Studio 2012. But when I deployed it to the IIS on my local machine and development server, the chart is not getting displayed and it gave a client side error: Uncaught ReferenceError: NClientHost is not defined . I have also attached the screenshots for your reference. Can you please let me know if I am missing something.

Thanks,
A****h.


Nevron Support
Posted 11 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Yesterday @ 1:54 AM
Posts: 3,054, Visits: 4,009

Hi A****h,

Binding the control to data is achieved either programmatically through code or with the DataBinding manager exposed in the ASP.NET control. We don't have an example that shows how to integrate the ASP.NET in MVC as for this purpose we recommend using the ThinWeb control (which has much better AJAX support in general). The ThinWeb chart is also shipped with examples that show how to integrate it with MVC.



Best Regards,
Nevron Support Team



Ashith Rai Nakoor
Posted 11 Years Ago
View Quick Profile
Forum Newbie

Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)Forum Newbie (4 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 4, Visits: 1
Hi Team,

I am working on implementing the Nevron chart control with the ASP.Net MVC Razor view engine. I want a a basic chart (not the thinwebcontrol) which binds to data. Do you have any examples??

Thanks,
A****h




Similar Topics


Reading This Topic