Adding Syncfusion to Existing Projects

I purchased Essential Studios before the new year. And while the samples, your website and the controls all seem to fulfill the claims and promises made, I am a little disappointed in the ease/documentation to add components to an existing project and maintaining different versions of the product across different projects.

For example, if I try to add Charts to an existing MVC4 project, your documentations states that I need the following:

  • Syncfusion.Core.dll
  • Syncfusion.Chart.Mvc.dll
  • Syncfusion.Linq.Base.dll
  • Syncfusion.Shared.Mvc.dll
  • AjaxMin.dll

However, I know for certain that so far (I haven't got it working yet), I also need:

  • Syncfusion.Shared.Base
  • Syncfusion.Chart.Base

Also, since I manage different projects, that I upload to servers that will not have the assemblies installed in the GAC, I cannot use the version number syntax for your config settings. I may have one project that I build with 10 and another project that I build with 11 next month. Do I really need to have all these versions in the GAC? I'd rather just run these projects with the assemblies bin deployed (as part of source control and in my solution).  This also complicates matters since your samples and examples found throughout the site always want to use this syntax, and of course, using all different versions of your assemblies, whether they've changed or not. There must be a better way to do this? I can't run many of your examples because I don't have the version installed. Not good. You have to find a better way to do this.

Most importantly, is it possible to get some documentation on how to add a given component (Charts, Excel, Grid, etc.) to an existing project from start to finish? This should mean that if I follow the steps 1- x, using (for example) VS2012, MVC4, Essential Studio 10, that I will be able to build and run a project.

Please help!

 


14 Replies

TB Tony Basallo January 20, 2013 07:53 PM UTC

It seems I also have to ensure that I have the following scripts:

Yet, no where does it say this.



VK Vijayabharathi K Syncfusion Team January 25, 2013 07:43 AM UTC

Hi Tony,

 

Thanks for using Syncfusion products.

 

We can deploy the web application without install the Essential studio in server and we can refer the Syncfusion assemblies from bin folder of application.  Please refer the following steps to configure webconfig and layout.cshtml file to use syncfusion chart control in MVC application.

 

Step 1)  Referring the DLL from bin folder for chart control and configure web config file for dll

We suggest you to place the below DLL's in bin folder for chart control instead of referring from GAC. Please remove the version, Culture and PublicKeyToken from web.config and aspx file while referring from bin folder. Please refer below code snippet.

[Web.Config]

 

     1) Adding reference assembly in webconfig file
  <assemblies>


        <add assembly="Syncfusion.Core" />

        <add assembly="Syncfusion.Chart.Base" />

        <add assembly="Syncfusion.Chart.Mvc" />

        <add assembly="Syncfusion.Shared.Mvc" />

        <add assembly="Syncfusion.Linq.Base" />

        <add assembly="Syncfusion.Theme.Base" />

        <add assembly="Syncfusion.Tools.Mvc" />

        <add assembly="Syncfusion.Compression.Base" />

        <add assembly="Syncfusion.Shared.Base” />

  </assemblies>

 

       2)  Adding namespace in webconfig file

  <namespaces>       

  

        <add namespace="Syncfusion.Mvc.Shared" />

        <add namespace="Syncfusion.Mvc.Tools" />

        <add namespace="Syncfusion.Mvc.Chart" />

        <add namespace="Syncfusion.Windows.Forms.Chart" />

  </namespaces>

    3) To add the above namespace in  Views web.config: (There will be two web.config files. Refer  to the one in the views folder.) Add the namespaces under the <namespaces> tag.

 

        4) Add the handler under the <httphandler> tag    

 

<httpHandlers>

<add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc" validate="false" />

<add path="syncfusion_generate.ashx" verb="*" type="Syncfusion.Web.UI.WebControls.Chart.ChartWebHandler,Syncfusion.Chart.Web" />

</httpHandlers>

 

          5) In order to run the Chart application in web server, you need to add the chart handlers which specifies the name, path and type of the handlers in the webconfig file in the System.webserver tag .

System.webserver => handlers. Please find the above code snippet for this.

 

<!--System.webserver => handlers.-->

<system.webServer>
<handlers>

<add verb="GET,HEAD" name="MVCResourceHandler" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc" validate="false" />

<add name="syncfusion_generate" path="syncfusion_generate.ashx" verb="*" type="Syncfusion.Web.UI.WebControls.Chart.ChartWebHandler,Syncfusion.Chart.Web" />

</handlers>

</system.webServer>

If you are running the chart application in the local machine via Visual studio, then it’s enough to add the handlers in “httpHandler” tag. But for hosting it, you have to add the same in webserver handler tag too.

 

Step 2) Configure the Layout.cshtml file to use Syncfusion controls

 

1) Import the JS file onto Layout.cshtml page (For Reference : http://help.syncfusion.com/ug/asp.net%20mvc/chart/documents/addingscripts3.htm)

2)  Adding Style and Script Manager on to Layout.cshtml (For Reference : http://help.syncfusion.com/ug/asp.net%20mvc/chart/documents/addingstylemanageran.htm)

3) Add the code for chart control in View page (For Reference : http://help.syncfusion.com/ug/asp.net%20mvc/chart/documents/creatingthechartcont2.htm)

4) Refer the attached sample for chart

 

Also, Please refer the below online documentation link to add Grid control in application.

http://help.syncfusion.com/ug/asp.net%20mvc/grid/documents/howdoiaddessentialgridtothesimplerazorapplication.htm

 

Please let us know if any concerns.

 

Regards,

Vijayabharathi



ChartSample_e63d3762.zip


TB Tony Basallo February 13, 2013 08:34 PM UTC

This does work with some other issues (known bugs, such as medium trust).

BTW, if the DLLs are not installed in the GAC then the assemblies section is not required and will cause an exception.

Is it possible to get the latest (or any version) DLLs without installing the complete Syncfusion Studio? In some case I just need to get the latest files for an existing or new project.

Or, I'm about to reload this machine (I do it every ~6 months) and would prefer not to install the studio - I just want the files.

 



SS Sivaguru S Syncfusion Team February 21, 2013 11:09 AM UTC

Hi Tony,

Thanks for the update.

Yes, we have link install setup. It will install the respective version Syncfusion assemblies into the target build machine.

For more information, please refer the KB article link mentioned below

http://www.syncfusion.com/support/kb/2154 

Please let us know, if you have any queries.

Regards,
Sivaguru S


RG Ron Ganus May 19, 2014 05:32 PM UTC

Where can I get instructions like this for the gridgrouping control? Are these instructions not part of your documentation or am I just missing something? I have not seen anywhere that explains what references need to be added to a project to use a specific control.


SM Sebastian Mothes replied to Ron Ganus June 17, 2014 12:14 PM UTC

Where can I get instructions like this for the gridgrouping control? Are these instructions not part of your documentation or am I just missing something? I have not seen anywhere that explains what references need to be added to a project to use a specific control.

Same problem here.

We did not manage to get ANY of the Syncfusion Controls to work in an existing MVC 4 Project.

Very frustrating.

The documentation seems to address an older Version (11). As we figured out dlls have been removed or renamed.



LC Lyndon Charles replied to Sebastian Mothes June 5, 2015 06:30 PM UTC

Where can I get instructions like this for the gridgrouping control? Are these instructions not part of your documentation or am I just missing something? I have not seen anywhere that explains what references need to be added to a project to use a specific control.

Same problem here.

We did not manage to get ANY of the Syncfusion Controls to work in an existing MVC 4 Project.

Very frustrating.

The documentation seems to address an older Version (11). As we figured out dlls have been removed or renamed.


Same Issue Here. Can we get a step by step on this? 


KN Kavitha Narayanan Syncfusion Team June 10, 2015 01:00 PM UTC

Hi Lyndon Charles,

Thank you for using syncfusion products.

Query 1: Where can I get instructions like this for the gridgrouping control?

For Asp.net Classic Gridgrouping control, you can get the Dlls details from below link:

http://help.syncfusion.com/ug/asp.net/index.html#!Documents/dlls5.htm

For Asp.net MVC Classic Grid control, you can get the Dlls details from below link:

http://help.syncfusion.com/ug/asp.net%20mvc/index.html#!Documents/deploymentrequirements4.htm

http://help.syncfusion.com/ug/asp.net%20mvc/index.html#!Documents/dll3.htm

Query 2: We did not manage to get ANY of the Syncfusion Controls to work in an existing MVC 4 Project.

We are suggest you to use sample creator to create the MVC sample with combination of MVC version and controls.

http://help.syncfusion.com/ug/asp.net%20mvc/index.html#!Documents/usingsamplecreator7.htm

http://help.syncfusion.com/ug/extension/index.html#!Documents/createsyncfusionmvcprojectfromsamplecreator.htm

Also for your convenience , we have prepared simple sample with Grid and MVC4. Please find sample from the following link:

Sample:sample.zip

Please let us know if you need any further assistance.

Thanks,
Kavitha Narayanan





CB Colin Buckley January 3, 2016 11:41 AM UTC

all the links on this page are broken


KN Kavitha Narayanan Syncfusion Team January 4, 2016 06:26 AM UTC

Hi Colin,
We are sorry for the inconvenience.

Please refer to the below updated links.

Query 1: Where can I get instructions like this for the gridgrouping control?

For ASP.NET Classic GridGrouping control,

http://help.syncfusion.com/aspnet-classic/grid/installation-and-deployment 

For ASP.NET MVC Classic Grid control,

http://help.syncfusion.com/aspnetmvc-classic/grid/installation-and-deployment 

Query 2: We did not manage to get ANY of the Syncfusion Controls to work in an existing MVC 4 Project.

We suggest you to use sample creator to create the MVC sample with combination of MVC version and controls.

http://help.syncfusion.com/extension/aspnet-mvc-extension/step-by-step-installation 

http://help.syncfusion.com/extension/aspnet-mvc-extension/sample-creator 

Regards,
Kavitha N.



ME Megatron January 15, 2016 11:29 PM UTC

I've been looking for help on this as well, I would like to share my feedback here. I like SF licensing, samples etc over Kendo, Infragistics and I am trying to replace/implement with SF control but adding other controls like Gantt or diagram to an existing project (enabled with custom layouts, latest V 3x bootstrap theme) has not been fruitful, and also does not render the controls or functionality, I have been searching the threads, but they do not factor the UI.

Can you please advise on how to get the controls working in _layout inherited ASP MVC (not classic, ASP MVC 5) project. Can you also tell us how to ensure the css from other themes do not interfere with your controls or vice versa.




MK Mahalakshmi Karthikeyan Syncfusion Team January 18, 2016 04:32 PM UTC

Hi Taviz,

Thanks for the update.

Please find the sample response below,

Gantt Control:

We can create Gantt Control which refers scripts and theme files from the layout page and you can find the sample from the following location.

Sample: http://www.syncfusion.com/downloads/support/directtrac/general/GANTTL~11505721726.ZIP

Diagram Control:

We suggest you to use sample creator to create the MVC sample with combination of MVC version and controls.

http://help.syncfusion.com/extension/aspnet-mvc-extension/step-by-step-installation 

http://help.syncfusion.com/extension/aspnet-mvc-extension/sample-creator

Also you can use custom script generator to get the individual script file and theme files.

http://csg.syncfusion.com/combine

Please refer to the sample below.

Sample:http://www.syncfusion.com/downloads/support/forum/121700/ze/simplesample883787642

Regards,

Mahalakshmi K.



ST Stas replied to Tony Basallo March 29, 2018 07:59 AM UTC

This does work with some other issues (known bugs, such as medium trust).

BTW, if the DLLs are not installed in the GAC then the assemblies section is not required and will cause an exception.

Is it possible to get the latest (or any version) DLLs without installing the complete Syncfusion Studio? In some case I just need to get the latest files for an existing or new project.

Or, I'm about to reload this machine (I do it every ~6 months) and would prefer not to install the studio - I just want the files.

 


סבבה



MS Manivannan Sundararajan Syncfusion Team March 30, 2018 08:19 AM UTC

Hi Stas,

Thanks for contacting Syncfusion support.

Yes, it is possible to use the Syncfusion Essential Studio assemblies alone using NuGet instead of downloading and installing the Essential Studio setup. You can download the latest NuGet packages for the Essential Studio platform you require from the following link.

http://nuget.syncfusion.com/  

Please refer the following documentation link for the NuGet install and configuration.

https://help.syncfusion.com/extension/syncfusion-nuget-packages/nuget-install-and-configuration   

Regards,
Manivannan S.

Loader.
Up arrow icon