ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Custom caption for Odropdownlist
Title:
B
I
{code}
?
I have different dropdown list, which I am generating at runtime in javascript. 1) Json.Encode(Html.Awe().Odropdown("projectId").DataFunc("LoadProjectList").CssClass("form-control").ToString()); 2) Json.Encode(Html.Awe().Odropdown("testModeId").DataFunc("LoadTestModes").CssClass("form-control").ToString()); 3) Json.Encode(Html.Awe().Odropdown("subModeId").Url(Url.Action("GetECUSubMode", "GetData")).CssClass("form-control").ToString()); 4) Json.Encode(Html.Awe().Odropdown("cellId").DataFunc("LoadCellList").CssClass("form-control").ToString()); when dropdown loads it has common caption "please select" which loads from awesm.js. I want to give custom caption for each dropdown list formed. For example: for 1st drop down I want "Project Code" as caption, for 2nd I want "Test Mode" as caption. So whcih property should be used to give custom captions in this case ?
Save Changes
Cancel
bsave
asked at 17 Nov 2016
@Html.Awe().AjaxRadioList("Foo").Odropdown(o => o.Caption("text"))
at 17 Nov 2016
Omu
This worked correctly. Thanks !
at 17 Nov 2016
bsave
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