BoldSignA modern eSignature application with affordable pricing. Sign up today for unlimited document usage!
Hi Syncfusion support,
Thanks for the help, currently i'm using the alternative by pass the value through the model as below and can be used for now
<ej-drop-down-list id="GenderList" datasource="ViewBag.datasourceGender" value= "@Model.GenderId">
<e-drop-down-list-fields text="GenderName" value="GenderId" />
</ej-drop-down-list>
<ej-drop-down-list id="GenderList" datasource="(IEnumerable<WebApplication1.Controllers.SelectListItem>)ViewBag.dataSourceGender" value=@ViewBag.Value>
<e-drop-down-list-fields text="GenderName" value="GenderId" />
</ej-drop-down-list> |
public IActionResult Index()
{
GenderList.Add(new SelectListItem { GenderId = 0 , GenderName ="Male"});
GenderList.Add(new SelectListItem { GenderId = 1, GenderName = "Female" });
ViewBag.dataSourceGender = GenderList;
ViewBag.Value = 1;
return View();
} |