ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
Html in KeyContent for AjaxRadioList dropdown
Title:
B
I
{code}
?
Was wondering how to implement: items.Insert(0, new KeyContent("", "<i class='fas fa-infinity'></i>", true)); return Json(items); for an `AjaxRadioList` So that an infinity sign is displayed as the first item in the UX dropdown.
Save Changes
Cancel
Stephan Luis
asked at 14 Nov 2018
Answers
B
I
{code}
?
you should have set encode = false (3rd paramter), here's an example: var items = Db.Categories.Select(o => new KeyContent(o.Id, o.Name)).ToList(); items.Insert(0, new KeyContent("", "<i class='fas fa-infinity'></i>", false)); return Json(items);
Save Changes
Cancel
Omu
answered at 14 Nov 2018
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