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

Can't get grid to show data

Thread ID:





127948 Dec 21,2016 12:49 AM UTC Dec 23,2016 06:28 AM UTC ASP.NET Core 6
Tags: Grid
R Brian Lindahl
Asked On December 21, 2016 12:49 AM UTC

I'm making my first foray into asp.net core. I've put together a sample application that closely mimics my actual application's setup.

When I try to view the /Foos page, I get an exception in the syncfusion javascript file:

line: 10
column: 2960332
message: n.views is undefined
stack: ".addInitTemplate@http://localhost:9390/lib/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js:10:2960332._initGridRender@http://localhost:9390/lib/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js:10:2954825._initDataSource/<@http://localhost:9390/lib/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js:10:2934612t.proxy/<@http://localhost:9390/lib/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js:10:25842jQuery.Callbacks/fire@http://localhost:9390/lib/jquery/dist/jquery.js:3182:11jQuery.Callbacks/self.fireWith@http://localhost:9390/lib/jquery/dist/jquery.js:3312:7t.DataManager.prototype._makeRequest/l<@http://localhost:9390/lib/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js:10:33437t.DataManager.prototype._makeRequest/v<@http://localhost:9390/lib/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js:10:34053w/<@http://localhost:9390/lib/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js:10:92779jQuery.Callbacks/fire@http://localhost:9390/lib/jquery/dist/jquery.js:3182:11jQuery.Callbacks/self.fireWith@http://localhost:9390/lib/jquery/dist/jquery.js:3312:7done@http://localhost:9390/lib/jquery/dist/jquery.js:8754:5.send/callback/<@http://localhost:9390/lib/jquery/dist/jquery.js:9120:9"

Attachment: WebApplication11_764dc59f.zip

Jayaprakash Kamaraj [Syncfusion]
Replied On December 21, 2016 12:50 PM UTC

Hi Brian, 

Thank you for contacting Syncfusion support. 

We have analyzed your attached sample and found that you have missed to mention adaptor in your sample. So, we suggest you to mention adaptor as UrlAdaptor in your sample. In Grid, we have many adaptors to perform crud operations . Refer to the below document for information about adaptors. 

  <e-datamanager url="/Foos/DataSource" 
                 update-url="/Foos/Update" adaptor="UrlAdaptor"> 


Jayaprakash K. 

R Brian Lindahl
Replied On December 21, 2016 04:12 PM UTC

Thank you! I'll put that in and give it a try. I couldn't find any documentation on how to specify the adaptor type.

R Brian Lindahl
Replied On December 21, 2016 04:18 PM UTC

Unfortunately, that didn't help. Still seeing the same exception in javascript when the page is loading.

Jayaprakash Kamaraj [Syncfusion]
Replied On December 22, 2016 01:32 PM UTC

Hi Brian, 
We have analyzed your sample and found that you have referred jsrender.min.js file with wrong path. The jsrender.js file is used to render the templates. Please refer to the below code example and modified sample. 
<environment names="Development"> 
        <script src="~/lib/jquery/dist/jquery.js"></script> 
        <script src="~/lib/bootstrap/dist/js/bootstrap.js"></script> 
        <script src="~/js/site.js" asp-append-version="true"></script> 
        @*<script src="~/lib/syncfusion-javascript/Scripts/jsrender.min.js"></script> // Wrong path *@ 
        <script src="~/lib/jsrender/jsrender.min.js"></script> // Correct path 
        <script src="~/lib/syncfusion-javascript/Scripts/ej/web/ej.web.all.min.js"></script> 

Jayaprakash K. 

R Brian Lindahl
Replied On December 22, 2016 08:51 PM UTC

Thanks. I figured it was something stupid.

Jayaprakash Kamaraj [Syncfusion]
Replied On December 23, 2016 06:28 AM UTC

Hi Brian,  
We are happy that the problem has been solved. 
Please get back to us if you need any further assistance.   
Jayaprakash K. 


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