Hi,
because my dropdown has over 1.000 possible values I've implemented ServersSide filtering
according to this example.
https://demos.telerik.com/aspnet-mvc/dropdownlist/serverfiltering
the only issue is that with a 1000 records servers side filtering still is slow when expanding the dropdownlist. because it the text is empty, all data is retrieved.
To avoid this issue I only select top 100 ".Take(100)" and the performance is way better.
the only issue is, when I open the dropdown for the 2nd time the selected item gets reset to the default one, if the selected item is not in the first 100 records.
In my oppinion, the current selected item should stay.
so My question, is there a way to make the current value stay,
or can I send the current selected value as a parameter?
for the edit Form, I already use the current value, so at least that one is always in the selection
read.Action("FilteredDDL", "some Controller", new { selectedValue = @Model.selectedvalue });
but this only helps if the value is already in the model.
Does someone know a good solution?