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 : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

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

Thread ID:

Created:

Updated:

Platform:

Replies:

130216 Apr 28,2017 10:49 AM UTC May 1,2017 07:23 AM UTC ASP.NET MVC 1
loading
Tags: Grid
Sanjay
Asked On April 28, 2017 10:49 AM UTC

Hi,

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.

Thanks,

Sanjay






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

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. 
 
 
 
  <system.web> 
    <authentication mode="None" /> 
    <compilation debug="true" targetFramework="4.5.1"> 
      <assemblies> 
        <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" /> 
      </assemblies> 
    </compilation> 
    <httpRuntime targetFramework="4.5.1" /> 
    <pages> 
      <namespaces> 
               . . . 
                 . . . . 
        <add namespace="Syncfusion.JavaScript" /> 
<add namespace="Syncfusion.MVC.EJ" /> 
      </namespaces> 
    </pages> 
  </system.web> 
 
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. 
 
 
Regards,  
Seeni Sakthi Kumar S. 


CONFIRMATION

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.

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

;