Search the web
Sign In
New User? Sign Up
ydn-dotnet · CLOSED: Yahoo! .NET Developer Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
asp.net MVC with YUI datasource/datatable   Message List  
Reply | Forward Message #250 of 263 |
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





Wed Nov 12, 2008 12:09 pm

dw71273
Offline Offline
Send Email Send Email

Forward
Message #250 of 263 |
Expand Messages Author Sort by Date

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...
dw71273
Offline Send Email
Nov 12, 2008
12:09 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help