What I have:
A MVC page that is bound to a Model that has:
public
IEnumerable<SelectListItem> ColumnHeaderList { get; set; }
On the Page I have this field:
@Html.DropDownList(
"SelectedPostalCodeField", Model.ColumnHeaderList)
Additionally I have a Telerik Upload control that the user will use to upload a CSV file that will have column headers in the first line of the file. I have set up to have the upload control Asyncronously call the Save method. In the Controllers Save method I retrieve the stream from the fileupload and I read the first line of that uploaded file to get a list of the column headers from the CSV file. I then parse those column headers and populate the Model.ColumnHeaderList property. All of this is working fine.
What I can't figure out is how to get the MVC page to update the @Html.DropDownList after the Save method has finished. When the page initially displays the drop down list is empty as expected, however after the upload completes I want to have the drop down list expand to contain the list of column headers I have retrieved from the file.
Any guidance would be greatly appreciated.