We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

dotnetnuke - does not contain a definition for 'EJ'

Thread ID:





131268 Jul 2,2017 10:44 AM UTC Dec 31,2018 10:26 AM UTC ASP.NET MVC 4
Tags: DatePicker
Damien Boissat
Asked On July 2, 2017 10:44 AM UTC


I have created a standard module for dotnetnuke and install the syncfusion nuget packages mvc5 version15.2.0.43 in the project.

All compilation works fine, I have solved the pb with node.js and typescript, followed all the procedures from syncfusion and add all the references, assemblies, namespaces etc....

Everything should be fine but as soon as i place :@Html.EJ().DatePicker("MyFirstDatepicker") or@Html.EJ().ScriptManager() I got this error on the page no matter what I do:

'DotNetNuke.Web.Mvc.Helpers.DnnHtmlHelper>' does not contain a definition for 'EJ' and the best extension method overload 'Syncfusion.MVC.EJ.JavaScriptExtension.EJ(System.Web.Mvc.HtmlHelper)' has some invalid arguments

(see screenshot)

If I comment it :@*@Html.EJ().DatePicker("MyFirstDatepicker")*@ it is fine 
( see picture)

If someone with a working development env of dotnetnuke could drop my module inside it and help me with that it would be awesome. 

It is very easy to setup a dev env of dotnetnuke: https://youtu.be/HybcKCWCj1Q

I have hosted the zip file of the module there: https://drive.google.com/open?id=0B_Mr91TUZA7mYnlGUXRmR0xnWG8

In case someone is interested by the steps to follow (install node.js, angular, typescript etc....) to get a valid installation of syncfusion mvc nugets packages inside dotnetnuke just ask me, it took me more than one day to figure out everything and I would be happy to help because it was very annoying.

Many Thanks,

Damien Boissat

Damien Boissat
Replied On July 3, 2017 02:34 PM UTC


Prem Kumar Madhan Raj [Syncfusion]
Replied On July 4, 2017 08:24 AM UTC

Hi Damien, 
We are happy to hear that an issue is fixed. Please get back to us if you need any further assistance on this. 
Prem Kumar. M 

A. Ashton
Replied On December 30, 2018 03:10 PM UTC

Hi Damien, 
We are happy to hear that an issue is fixed. Please get back to us if you need any further assistance on this. 
Prem Kumar. M 

Add SyncFusion controls to DNN Module requires  a few changes :

1. Change Controller Class to inherit  DnnController   
using DotNetNuke.Web.Mvc.Framework.Controllers;

2. Modify the paths in  _layout.cshtml   and  _ViewStart.cshtml
 Eg.  @Styles.Render("~/DesktopModules/MVC/EssentialJS2MvcApplication1/Content/css")

3. Ensure WebConfig  in the Views folder matches the SyncFusion required  namespaces and  pageBaseType  

Eg.  <pages pageBaseType="System.Web.Mvc.WebViewPage">

Deepa Loganathan [Syncfusion]
Replied On December 31, 2018 10:26 AM UTC

Hi Damien,  
Thank you for the valuable information. 
We will analyze further and publish a Knowledge base shortly explaining the complete steps required to configure DotNetNuke module for integrating EJ components. 
Please let us know if you have any further concerns. 
Deepa L. 


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon