Feb 20, 2015, 7:49 PM
[CLOSED] MVC pass extra parameter to Store AjaxProxy Url.Action
I am trying to pass in a hidden Id filed value to the Stores AjaxProxy method call.
I have tried:
I have tried:
My question is, what is the correct way for passing in an extra parameter when calling a method for the AjaxProxy?
Thank you
I have tried:
.Url(Url.Action("GetCompanies", "CompData", new { id = "App.HidId.getValue()" }))
This returns not found route when the extra param is there.I have tried:
Html.X().AjaxProxy()
.Url(Url.Action("GetCompanies"))
.Reader(Html.X().JsonReader().Root("data"))
.ExtraParams(x => x.Add(new Parameter() { Name = "id", Value = "App.hidid.getValue()", Mode = ParameterMode.Raw }))
This does not even open the window where this is called from when I add the ExtraParams part. No exception, nothing... strange.My question is, what is the correct way for passing in an extra parameter when calling a method for the AjaxProxy?
Thank you
Last edited by fabricio.murta; Feb 21, 2015 at 4:28 PM.
Reason: [CLOSED]