BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
Hi Neil,
Thanks for using Syncfusion products.
We have checked the sample that you have attached and suspect that the cause of the issue is you have enabled “Unobtrusive” mode in Web.Config file and missed to add “ej.unobtrusive.min.js” script in the _Layout.cshtml page hence the MVC Grid is not rendered. Please refer the below code snippet.
[Web.config]
<appSettings> <add key="webpages:Version" value="2.0.0.0" /> <add key="webpages:Enabled" value="false" /> <add key="PreserveLoginUrl" value="true" /> <add key="ClientValidationEnabled" value="true" /> <add key="UnobtrusiveJavaScriptEnabled" value="true" /> </appSettings> |
If UnobtrusiveJavaScriptEnabled is set as true then we must include the “ej.unobtrusive.min.js” file in the _Layout.cshtml page. Please refer the below code snippet.
[_Layout.cshtml]
<script src="@Url.Content("~/Scripts/ej/ej.web.all.min.js")"></script> <script src="@Url.Content("~/Scripts/ej/ej.unobtrusive.min.js")"></script> |
We have drafted the documentation for the ASP.Net MVC controls and it is tentatively scheduled to be hosted online on May 21, 2014. We will let you know once the documentation is hosted online. For now we have provided the Unedited documentation copy of the Getting Started ASP.Net MVC Grid control and the same can be downloaded from the below link.
Document link: http://www.syncfusion.com/downloads/support/directtrac/125032/Getting_Started_for_MVC_Grid-577428159.zip
We have listed the Namespaces, DLLs , script and CSS files needed to work with the ASP.Net MVC Control in the below table. Please refer the below table.
DLLs required |
Syncfusion.EJ.dll Syncfusion.EJ.MVC.dll Syncfusion.Core.dll |
Namespaces |
Syncfusion.MVC.EJ Syncfusion.JavaScript |
Script files |
Syncfusion script files: ej.web.all.min.js ej.unobtrusive.min.js // need only when UnobtrusiveJavaScriptEnabled is set as true in web.config file External Script files: jquery.min.js jquery.easing.min.js jquery.globalize.min.js jsrender.min.js jquery.validate.min.js |
CSS files |
ej.widgets.all.min.css |
For your convenience we have created a getting started video for ASP.Net MVC Grid control and the same can be downloaded from the following location.
Video Link: aspmvc.zip
In the above video we have used the MVC Extension to create Syncfusion ASP.Net MVC Grid control. Please find the latest MVC Extension setup from the below link.
http://www.syncfusion.com/downloads/extension/v12.1.0.43
For your convenience, we have modified the sample that you have attached and the same can be downloaded from the attachment.
Please let us know if you have any queries.
Maithiliy K
Thanks for your appreciation.
We don’t have any documentation for Unobtrusive JavaScript mode in ASP.Net MVC Controls.
When the “UnobtrusiveJavaScriptEnabled” is set as true in web.config file, the control container will be generated using HTML5 “data” attributes and we need to refer the “ej.unobtrusive.min.js” script file in the view page to render the Essential Javascript controls in unobtrusive mode.
For more details about Unobtrusive Javascript please refer the below links.
http://blog.socialcast.com/unobtrusive-javascript-2/
http://simonecarletti.com/blog/2010/06/unobtrusive-javascript-technique/
Please let us know if you have any queries.
Regards,
Madhu Sudhanan. P