BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
https://help.syncfusion.com/extension/aspnetmvc-essentialjs2-extension/project-conversion
For Build Version 13.2.0.29 and above:
{Build Installed location\Utilities\Extensions\ASP.NET MVC\Project Conversion\Framework}
EX: C:\ProgramFiles\Syncfusion\EssentialStudio\13.2.0.29\Utilities\Extensions\ASP.NET MVC\Project Conversion\4.5
Note: Framework should be chosen based on your Visual Studio version
Now the Syncfusion.Shared.MVC and other required dependent assemblies will be added to your project once the Project Conversion wizard completed.
Please let me know if you have any queries.
Thanks,
Kanimozhi.K.P.
Hi Kanimozhi.
Thanks for reply.
Can I do it with NuGet? I managed to install Syncfusions packages via nuget but I the only controls I can use are @Html.EJ().
If I understand right EJ stands for SyncfusionJavaScript no MVC?
Am I correct?
but I the only controls I can use are @Html.EJ().
If I understand right EJ stands for SyncfusionJavaScript no MVC?
Am I correct?
Response:
The suite of ASP.NET MVC controls which was offered as "Essential Studio for ASP.NET MVC" till the Volume 4 2013 release has been marked as "Classic" and the newer set of controls powered by Essential JavaScript takes its place. The newer ASP.NET MVC uses @Html.EJ() and Classic ASP.NET MVC uses @Html.Syncfusion(), both the platforms are different from each other and uses corresponding DLLs. Similarly we have separate NuGets for Classic MVC and new MVC controls. Could you please confirm the platform and control you are working with?
Refer the table below and follow the steps as per your desired platforms,
ASP.NET MVC Classic | ASP.NET MVC (EJMVC) | |
Assemblies | Syncfusion.Core Syncfusion.Linq.Base Syncfusion.Shared.MVC Syncfusion.Tools.MVC Syncfusion.Theme.Base | Syncfusion.Core Syncfusion.EJ Syncfusion.EJ.MVC |
Extension | https://help.syncfusion.com/aspnetmvc-classic/syncfusion-mvc-project-templates | https://help.syncfusion.com/extension/aspnet-mvc-extension/overview |
NuGet Package | SyncfusionASPMVC<version>Classic<Framework> For eg: SyncfusionASPMVC5Classsic451 | SyncfusionASPMVC<version><Framework> For eg: SyncfusionASPMVC545 |
I managed to do as you sad.
But now I have this error:
The type or namespace "JavaScript" does not exist in the namespace "Syncfusion" (or missing an assembly reference?).
Via nuget I added SyncfusionJavaScript but this does not work.
Please Help
Response:
We will get back to you at the earliest. We will appreciate your patience until then.
Thanks,
Kanimozhi.K.P.
<system.web>
<httpHandlers>
<add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />
<add verb="*" path="sfgenerate_tools.axd" type="Syncfusion.Mvc.Tools.ImageHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />
</httpHandlers>
</system.web>
<system.webServer>
<handlers>
<add verb="GET,HEAD" name="MvcResourceHandler" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
<add verb="*" path="sfgenerate_tools.axd" name="syncfusion_generatetools" type="Syncfusion.Mvc.Tools.ImageHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
</handlers>
</system.webServer>
</code>
If this is not the issue at your end, could you please explain us on the issue you are facing? Also the control you have used at your end and scenario to reproduce the issue you are facing.
Please let us know if you have any queries.
Regards,
Ezhil S
Sorry about the inconvenience caused.
We suspect that the issue is reproduced by without using the StyleManager() and ScriptManager().
Please ensure the following steps.
1. Add the StyleManager extension method in the head tag of the layout page.
@(Html.Syncfusion().StyleManager().Combine(true).Minify(true)
2. Use the Register() method to add the Syncfusion component name(Grid).If we are using gridcontrol, then we have to add componentType is grid
.Register(component =>
{
component.Add(ComponentType.Grid);
})
3. Add the ScriptManager() method in the body tag of the layout page.
@{Html.Syncfusion().ScriptManager().Combine(false).Minify(false).Render();}
4. Ensure that the correct Syncfusion version (v13.2) is used in project and Web.config file.
5.Ensure that the same MVC version is used in project and web.config file. If we are using system.web.mvc version is 5 or 4 or 3, then we have refer the corresponding DLL version.
For example:
< targetFramework="4.5.1">
<add assembly="Syncfusion.Grid.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
[MVC 4]
< targetFramework="4.5">
<add assembly="Syncfusion.Grid.Mvc, Version=13.2400.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
[MVC 3]
< targetFramework="4.0">
<add assembly="Syncfusion.Grid.Mvc, Version=13.2300.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
If the issue still there, please send to us issue replicated sample.
For your reference, we have attached a sample.
Sample: http://www.syncfusion.com/downloads/support/forum/119579/Gridsample1792066216.zip
Regards,
Kavitha N.
<system.web>
….
<httpHandlers>
<add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" />
</httpHandlers>
</system.web>
<handlers>….
<add verb="GET,HEAD" name="MvcResourceHandler" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" />
</handlers>
….
Please try the above code in your sample. If it does not resolve the issue as you stated, please provide the issue replicated sample with us, so that we can sort out the issue and provide you a better solution.
Please let us know if you need further assistance.
Regards,
Shanmugaraja K
Thanks for your update.
As we mentioned earlier, please ensure that the same MVC version is used in both project and webconfig file. We suspect that the issue is occurring while using different version in webconfig file.
1. Please refer the following table for MVC versions
MVC Version | In Webconfig(Shared.Mvc,Grid.MVC, Tools.Mvc, XlsIO.Mvc, DocIO.Mvc) |
System.Web.Mvc Version-5 | Please refer the corresponding DLL version in project and webconfig file. <add assembly="Syncfusion.Grid.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" /> <add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2500.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" /> |
System.Web.Mvc Version-4 | <add assembly="Syncfusion.Grid.Mvc, Version=13.2400.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" /> <add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2400.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" /> |
System.Web.Mvc Version-3 | add assembly="Syncfusion.Grid.Mvc, Version=13.2300.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" /> <add verb="GET,HEAD" path="MvcResourceHandler.axd" type="Syncfusion.Mvc.Shared.MvcResourceHandler, Syncfusion.Shared.Mvc, Version=13.2300.0.29, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" validate="false" /> |
2. Add the _Layout.cshtml file with include style and Script manager.
3 In your sample, we have not found any code for grid control. So, we have added grid control in your sample.
4. The below code example has to be added for rendering the grid.
[cshtml]
@{ Html.Syncfusion().Grid<Przychodnia3.Models.Student>("Grid")
.EnablePaging()
.EnableSorting()
.ActionMode(ActionMode.JSON)
.Column(column =>
{
column.Add(c => c.UniversityCode).HeaderText("University Code");
column.Add(c => c.Title).HeaderText("Title");
column.Add(c => c.Duration).HeaderText("Duration");
column.Add(c => c.CourseFees).HeaderText("CourseFees");
column.Add(c => c.CGPA).HeaderText("CGPA");
}).Render();
}
[controller]
public ActionResult Index()
{
ViewBag.Message = "Modify this template to jump-start your ASP.NET MVC application.";
ViewData["NewsList"] = new StudentDataContext().Student.Take(10).ToList();
return View();
}
[AcceptVerbs(HttpVerbs.Post)]
public ActionResult Index(PagingParams args)
{
IEnumerable data = new StudentDataContext().Student.Take(10).ToList();
return data.GridJSONActions<Student>(); //JSON mode
For your reference, we have modified your attached sample. And also we request you to refer the UG link:
UG link: http://help.syncfusion.com/ug/asp.net%20mvc/index.html#!Documents/throughgridbuilder.htm
Sample: http://www.syncfusion.com/downloads/support/forum/119579/sample737014330.zip
Please let us know if you have any queries.
Regards,
Kavitha N.