ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
InitCall is not calling controller method on parent change
Title:
B
I
{code}
?
@Html.DropDownListFor(model => model.PersonTypeID, (IEnumerable<SelectListItem>)ViewBag.PersonTypes, "--Select One--", htmlAttributes: new { @class = "form-@Html.EditorFor(model => model.Remaining, new { htmlAttributes = new { @class = "form-control", @readOnly = true } }) @(Html.Awe().InitCall("callRemaining") .Url(Url.Action("GetRemainingSequencesCount", "AutomatedEmailPERSONs")) .Parent("PersonTypeID", "personTypeId") .Success("showRemaining"))
Save Changes
Cancel
Jason Pereira
asked at 09 Oct 2015
call, lookups, and popup helpers don't reload/act when a parent changes it's value you can use js to bind to dropdown change event and call awe.oc('callRemaining'); $('#PersonTypeID').change(function(){ awe.oc('callRemaining'); });
at 09 Oct 2015
Omu
Answers
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK