Action

The relative controller/action path used to get data for a cascading drop down. This must be the same as the url that would be called for for the ajax request.

NOTE: This path is case sensitive!

public class TownController : Controller 
{
    public ActionResult GetTownsById(int stateId) 
    {
        return new CascadingActionResult(...);
    }
}

public class ViewModel 
{
    public int? StateId { get; set; }
   
    [Cascading(Action="/Town/GetTownsById/")]
    public int? TownId { get; set; }
}

Last edited Feb 17, 2012 at 9:30 PM by rossisdead, version 5

Comments

No comments yet.