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.
Unfortunately, activation email could not send to your email. Please try again.

@Html.EJ() is not recognized in the view for Grid Control

Thread ID:





130216 Apr 28,2017 06:49 AM May 1,2017 03:23 AM ASP.NET MVC 1
Tags: Grid
Asked On April 28, 2017 06:49 AM


while I am using the syncfusion with asp.net mvc, not able to use Grid control. While I am using this control, the cshtml page is not recognized the @HTML.EJ(). I have already added the references on the page which is given bellow. I have already added the core references of dlls but still I am not able to display data into the grid. Is any other method through which I can bind the data into grid.

<script type="text/javascript" src="~/Scripts/ej/ej.web.all.min.js"></script>

<script src="~/Scripts/ej/ej.grid.min.js"></script>

<script src="~/Scripts/ej/ej.web.all.min.intellisense.js"></script>

I have already tried with static data, which is also not binding into grid. So please suggest me what steps or what reference I need to add to work with grid. IF I missing anything else please help me out.



Seeni Sakthi Kumar Seeni Raj [Syncfusion]
Replied On May 1, 2017 03:23 AM

Hi Sanjay,  
Thanks for contacting Syncfusion Support.  
We suspect that you are missing a namespace reference in your application’s web.config. So we suggest to ensure the following lines in web.config. 
    <authentication mode="None" /> 
    <compilation debug="true" targetFramework="4.5.1"> 
        <add assembly="Syncfusion.EJ, Version=15.1450.0.41, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" /> 
        <add assembly="Syncfusion.EJ.MVC, Version=15.1500.0.41, Culture=neutral, PublicKeyToken=3d67ed1f87d44c89" /> 
    <httpRuntime targetFramework="4.5.1" /> 
               . . . 
                 . . . . 
        <add namespace="Syncfusion.JavaScript" /> 
<add namespace="Syncfusion.MVC.EJ" /> 
Refer to the following Help Documents. 
We could also see that you have referred ej.grid.min.js and ej.web.all.min.js in your application which is not the recommended. ej.web.all.min.js holds all the controls including the ej.grid.min.js. So, there is no need to refer the respective control separately. Refer to the following Help Documents. 
Seeni Sakthi Kumar S. 


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.

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.