Jul 23, 2014, 6:46 AM
[CLOSED] Direct Method - App.direct undefined
Hi all
I thought that defining a Direct method would be as easy as: decorate a controller with [DirectController], decorate an action with [DirectMethod], define a handler as "App.direct.MyMethodname()"
Every time I do this I get the error in the browser saying that the App.direct is undefined. What am I missing here please?
Defining a double click for a GridPanel row (I am not sure if this is the right way to do this!)
I thought that defining a Direct method would be as easy as: decorate a controller with [DirectController], decorate an action with [DirectMethod], define a handler as "App.direct.MyMethodname()"
Every time I do this I get the error in the browser saying that the App.direct is undefined. What am I missing here please?
Defining a double click for a GridPanel row (I am not sure if this is the right way to do this!)
[DirectController]
public class Checkbox_SelectionController : Controller
{
public ActionResult Index()
{
return View(new Checkbox_SelectionModel());
}
[DirectMethod]
public ActionResult DblClick()
{
return this.Direct();
}
}
.Listeners(l =>
{
l.ItemDblClick.Handler = "App.direct.DblClick();";
})
Thank you
Last edited by Daniil; Jul 23, 2014 at 1:51 PM.
Reason: [CLOSED]