Hi - I'm trying to use the YUI datasource with a datatable in an
ASP.NET 3.5 MVC application, and am not having much luck. I've set up
the javascript to test out a simple JSON Result from a controller
method called GetArtists():
var myDataSource = new YAHOO.util.DataSource("/Admin/GetArtists");
myDataSource.responseType = YAHOO.util.DataSource.TYPE_JSON;
myDataSource.responseSchema = { fields: ["ID", "Name"] };
var myDataTable = new YAHOO.widget.DataTable("basic",
myColumnDefs, myDataSource, { caption: "DataTable Caption" });
This example is a sripped down version of the "Basic Example" example
in the YUI datatable page, and works when I use another datasource
with JSARRAY, so I've isolated the issue to the datasource. My
controller method isn't even getting called and the datatable displays
just "Data error." and I'm wondering if anyone has had any luck
populating a datasource with ASP.NET MVC controller methods?
Thanks, Dennis