Category / Section
How to render controls when unobtrusive is in enabled state?
2 mins read
Render Syncfusion controls in unobtrusive mode
When you enable the unobtrusive in your application, refer to the ej.unobtrusive.min.js file in the application.
You have to set the value of UnobtrusiveJavaScriptEnabled to true in Root directory web.config file as shown in the following code example.
Web.config
<appSettings> . . . <add key="UnobtrusiveJavaScriptEnabled" value="true" /> . . . </appSettings> |
After setting the value as true, refer to the unobtrusive script file in the _Layout page as shown in the following code example.
_Layout.cshtml
<head> <script src="http://cdn.syncfusion.com/13.1.0.21/js/assets/scripts/common/ej.unobtrusive.min.js"></script> </head>
MVC sample is attached in unobtrusive mode and it can be downloaded from the following location.