Articles in this section
Category / Section

Instructions to Copy and Run the code

2 mins read

How to properly run the copied code properly in aan 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.

 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Please sign in to leave a comment