I have a table with 3 entries in addition to the Id. I want a select list to show all entries in a row, for better identification of the data. Right now select only show me either the value (Id) or one text(one field) from table
ex.
- >--Select Asset Location--
- Locations = await _context.WOAssetLocations.Where(s => s.OrgID == orgid)
- .Select(s => new SelectListItem
- {
- Value = s.WOALId.ToString(),
- Text = s.AssetLocation
- }).ToListAsync();


Sachin SinghRank #66 · 26.2K reputationPosted Jan 23, 2021, 12:06 PM EST
Sachin SinghRank #66 · 26.2K reputationPosted Jan 23, 2021, 11:32 AM EST
but in UI you will really need a select of huge width.
Marius VasileRank #785 · 2.9K reputationPosted Jan 23, 2021, 11:46 AM EST
Marius VasileRank #785 · 2.9K reputationPosted Jan 23, 2021, 12:13 PM EST