ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
how to set helper properties when using EditorFor Helper
Title:
B
I
{code}
?
code: @Html.EditorFor(o => o.AssociationID) it give the component with the Label but sometimes i have to customize the Component so i used @(Html.Awe().AjaxRadioListFor(o => o.AssociationID) .Odropdown() .Url(Url.Action("GetAssociations", "Data"))) the problem in this Case that, it does not show the *Label* along with the Component, is there any way to do that ? Except Manaul Process
Save Changes
Cancel
Loai Alhalabi
asked at 10 Dec 2016
Answers
B
I
{code}
?
you could create a view in `Shared\EditorTemplates` just for this helper declaration, and after use it using `[UIHint("Association")]` you can also make a more generic view by making use of `ModelMetadata.AdditionalValues` http://stackoverflow.com/questions/9681107/asp-net-mvc-editor-templates-uihint-with-parameters
Save Changes
Cancel
Omu
answered at 10 Dec 2016
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