volosoft / jtable

A JQuery plugin to create AJAX based CRUD tables.
http://www.jtable.org
1.1k stars 505 forks source link

List action not returning data from web api 2.0 controller #1849

Open lvsund opened 9 years ago

lvsund commented 9 years ago

Hi, I have a single controller in a asp.net web api for statustypes pointing to a sql database. I have web api controller defined. When I call the get list in the browser ie api/StatusTypes I can see the data. So I know web api is working. I am trying to get it talk to jtable. When I launch the index page to bring up grid with data it does the loading ... message but data never comes. Its almost like I am missing something in the javascript to get in to see the data from the web api. Below if javascript. Can anybody see why data isn't coming to grid?

<!DOCTYPE html>

Index ``` ```
bretuobay commented 8 years ago

Almost one year one and this questions has not been answered, I have run into the same problem. In your case, I think it was because of the way the api url string was defined. Let me know if you found a solution. Thanks