Sencha.Direct

Sencha.Direct allows you to call the action on ASP.NET MVC controllers from your ExtJS application. To handle incoming requests you'll need to register the router and generate Direct API. For ExtJs version 3.* and earlier you need to add patch in the client-side scripts.

Request routing

Each request is being processed router and executed in its own context. Result of the query is serialized in JSON(if not already), and sent to the browser. You can control the behavior of router with attributes:

Parameters binding and result serialization

The router passes the parameter values ​​in the form of JSON string, and binds the values ​​of parameters using JsonModelBinder. If you override ActionInvoker or otherwise interact with it, keep in mind that when routing requests, it is replaced with RouterActionInvoker.

DirectController can return additional results:

Sencha.Direct.Client

It is the client part of the protocol "Ext Direct". You can create a new class based on the RpcConnection and use internal methods Request or Begin/End/AbortRequest to query remote server. More information can be found on the client's page

Last edited Apr 27, 2012 at 3:11 PM by ShaiHulud, version 23

Comments

No comments yet.