We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Instructions to Copy and Run the code

How to properly run the copied code properly in a MVC sample

 

Description:

When a piece of code or sample is copied from the Syncfusion sample browser or UG documentation, it cannot be expected to work properly unless certain prerequisites and conditions are met.

 

Solution:

Prerequisites:

 

  • A MVC application with Syncfusion assemblies installed. Make sure that the required assemblies are included in the project, for ex: (for e.g., Syncfusion.EJ and Syncfusion.EJ.MVC).

 

  • Scripts and Theme files that are required by Syncfusion controls are referred in the _Layout page. For ex: (for e.g., jQuery v1.10 or higher, ej.web.all.min.js , and ej.web.all.min.css).

 

If these above previous requirements are met, then the code copied from the documentation or demo site and pasted in to the application and will work flawless.

 

Starting from scratch…...

 

When creating a new application to try out the code, check out our Getting started section in UG documentation: https://help.syncfusion.com/aspnetmvc/getting-started.

 

Hint: For a quicker way, the sample creator which that is included in the Syncfusion Dashboard or Syncfusion Project templates available in the Visual Studio can be used.

For more information, refer to the following documentation: https://help.syncfusion.com/aspnetmvc/getting-started

Sample Creator -: https://help.syncfusion.com/extension/aspnet-mvc-extension/sample-creator

Project Templates -: https://help.syncfusion.com/extension/aspnet-mvc-extension/syncfusion-project-templates

 

Already have an MVC application……

 

For existing applications, check out the manual integration of Syncfusion controls section in the UG documentation: https://help.syncfusion.com/aspnetmvc/getting-started#manual-integration.

Hint: For a quicker way, the project conversion utility included in the Syncfusion Dashboard can be used.

For more information, refer to the following documentation:

Project Conversion -: https://help.syncfusion.com/extension/aspnet-mvc-extension/project-conversion

 

The above previous steps can help with almost every demo sample. Still if you couldn’t couldnotcould not get the sample working or need any further help, then contact us by creating a support ticket.

Article ID: Published Date: Last Revised Date: Platform: Control:
8270 01/04/2018 01/04/2018 ASP.NET MVC General
Did you find this information helpful?
Add Comment
You must log in to leave a comment

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.