Your web.config is like it should be?
You have Ext.Direct... namespace included in your controller class files?
Printable View
Your web.config is like it should be?
You have Ext.Direct... namespace included in your controller class files?
The web.config is nearly the same as the example config. No important differences, I have "using Ext.Direct.Mvc " add to the controller class... :-?
rajaJs, you're supposed to be returning raw data, that can be serialized to JSON object where members' names match field names of the form. And what you're doing is returning full DataRow object, it's not going to work. Just return an anonymous type, it's the easiest thing to do.
I'm using the build in webserver to run the app.There are no config items in the web.config related to Ext.Direct.MVC.
Thanks
You should submit this to: https://market.sencha.com/addons
Downloaded the latest demo (Mvc3Demo) and its working correctly, but after implementing the same exact way in my local project i got an error :
The resource cannot be found.
Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable. Please review the following URL and make sure that it is spelled correctly.
Requested URL: /directapi
Then i created a blank MVC3 web project and apply the same way as what have on the demo and i've only got :
Ext.ns("Ext.app");Ext.app.REMOTING_API={"type":"remoting","url":"/DirectRouter/Index","actions":{}}; for the its directapi. i've this on my controller :
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Ext.Direct.Mvc;
namespace MvcApplication4.Controllers
{
public class TestingController : DirectController
{
public ActionResult Details(int id)
{
return Json("asdfasdfasdf");
}
}
its been 4 days and i have not accomplish anything. tnx
Another one is, the created a separate project for my controller, how will i setup it?i have already tried :
<ext.direct
namespace="MyAssembly"
buffer="10"
maxRetries="1"
timeout="5000"
dateFormat="js"
debug="true"
/>is this correct?
allanace852
I honestly don't know how I can help you. To veryfy that everything is working I just created an empty MVC3 project, referenced the Ext.Direct.Mvc and Json.NET libraries and got it working right away. Then I created a Class Library project in the same solution, moved the TestingController there, referenced it from the MVC3 project and got it working without changing anything in the web project. I didn't even have to change the web.config.
My only advice to you is read the documentation and make sure you follow all the steps, there aren't that many. I don't know what else I can do for you.