This is a migrated thread and some comments may be shown as answers.

[Solved] How to update page after success

2 Answers 119 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Wade
Top achievements
Rank 1
Wade asked on 21 Apr 2011, 03:37 PM
What I would like to do but can't figure out how to or if it is possible.

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. 

2 Answers, 1 is accepted

Sort by
0
shailendra
Top achievements
Rank 1
answered on 25 Apr 2011, 07:10 AM
Hi Wade,

I am also facing same problem like " how to update partial page once upload operation is completed successfully."

Had you got some solutions if yes please share your thoughts with me too.

Thanks in advance.

0
Accepted
Atanas Korchev
Telerik team
answered on 25 Apr 2011, 07:35 AM
Hello,

 Sending and receiving metadata during uploads is discussed in this help topic.

Regards,
Atanas Korchev
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Upload
Asked by
Wade
Top achievements
Rank 1
Answers by
shailendra
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or