After my page comes back after a post the selected items in the multi select are gone. The datasource http GET returns no items because it filters it base off text...
RAZOR .cshtml
<kendo-multiselect for="SearchCriteria.SiteId" value="@Model.SearchCriteria.SiteId" datatextfield="Name"
datavaluefield="Id" placeholder="Search for a Clinic" filter="FilterType.Contains"
auto-bind="true" deferred="true">
<datasource server-filtering="true">
<transport>
<read url="@Model.SearchProvidersURL">
</transport>
</datasource>
</kendo-multiselect>
RAZOR Model page
public string SearchProvidersURL => $"{Url.Page("ByClinic")}?handler=ProviderSearch";
public async Task<JsonResult> OnGetProviderSearch(string text)
{
var providerSites = await _lookUpService.GetProviderSites(text);
//No Results if text is less than 3 characters because there are too many sites. I would return 40,000 items
return new JsonResult(providerSites);
}
Can I write some javascript that could run after the post happens, I don't know what to do?