In my view I am using:
@model IEnumerable<UserManager.Models.vw_UserManager_Model>
because I am using webgrid and my model to create a grid on my page. I am also trying to get a specific value from my model here:
<input name="User logged in" type="checkbox" onclick="filterGrid('@Url.Action("FilterGrid", "UserManager", new { filterVal = Model.Single(model => model.alfIntelligence) })')" id="chkboxGridFilter" />
I don’t know how to get the value from object that uses IEnumerable. Does anyone know the correct method to call on Model?
Thanks!
You can try
FirstOrDefault()and then use this variable where you want to.
If you could provide me with more details on
vw_UserManager_ModelI think I can provide you with a better answer, but I think this should do it for you.