[FIXED] [#938] [3.3] ComponentLoader for Component doesn't work
Hello,
Example:
Code:
@using Ext.Net;
@using Ext.Net.MVC;
@{
Layout = null;
var X = Html.X();
}
<!DOCTYPE html>
<html>
<head>
<title>Test</title>
</head>
<body>
@(Html.X().ResourceManager().Theme(Theme.CrispTouch))
@(X.Component()
.Width(500)
.Height(500)
.Tpl(X.XTemplate()
.Html("{Data}")
)
.Loader(X.ComponentLoader()
.Url(Url.Action("GetData", "ExtNet"))
.Mode(LoadMode.Data)
)
)
</body>
</html>
Code:
using System.Web.Mvc;
using Ext.Net;
using Ext.Net.MVC;
using ExtNetTest.Test.Models;
using System.Collections.Generic;
namespace ExtNet.Test.Controllers
{
public class ExtNetController : Controller
{
public ActionResult Index()
{
return this.View();
}
public ActionResult GetData()
{
return Json(new { Data = 10 }, JsonRequestBehavior.AllowGet);
}
}
}