I have my combobox like this:
<ejs-combobox id="UlicaId" ejs-for="@Model.UlicaId" popupHeight="220px">
<e-data-manager adaptor="UrlAdaptor" url="Maticni/Firmas/DSUlica" crossDomain="true"></e-data-manager>
<e-combobox-fields text="Naziv" value="UlicaId"></e-combobox-fields>
</ejs-combobox>
public ActionResult DSUlica([FromBody]Ulica dm)
{
var dsUlica = from u in _context.Ulica
orderby u.Naziv
select new
{
u.UlicaId,
u.Naziv
};
var Data = dsUlica.ToList();
return Json(Data);
}
which gives me this:
So, the data binding is ok, in the edit view ejs-for is working fine.
But, with this blue button I'm opening the dialog for the streets. Ulica means street in croatian.
And then I can add the new one:
And it's in the database right now:
But when I close the dialog and open the combobox dropdown again, there is no street named XXXXXXX.
So, I want to refresh the combobox data after closing the dialog, or on beforeOpen event maybe.
Is there some help for that?
Thanks.
Bernard.