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 SinghPosted Jan 23, 2021, 5:06 PM
Marius VasilePosted Jan 23, 2021, 5:13 PM
Marius VasilePosted Jan 23, 2021, 4:46 PM
Sachin SinghPosted Jan 23, 2021, 4:32 PM
but in UI you will really need a select of huge width.