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

Additional Controls on RadUploadItem and Add More Files

1 Answer 37 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Brian
Top achievements
Rank 1
Brian asked on 18 Oct 2011, 09:57 PM
I am trying to add a RadComboBox to the RadUploadItem so that I can have the user select a value for each file before uploading them.  I have already copied the template and edited it and the combobox shows up fine, but if I click the Add More Files button and select additional files, the selected values in the comboboxes for the previously-selected files are lost (reset to nothing selected).  My problem seems similar to the one posted here: http://www.telerik.com/community/forums/silverlight/upload/add-more-files-functionality-and-custom-parameters.aspx  Back on 1/14/2010, it was stated that when the Add More Files is used, the item containers for all files are re-created, so this functionality should not be used [if you want to customize the item].  I'm hoping that this has since been fixed and that I am just missing something.

1 Answer, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 21 Oct 2011, 04:19 PM
Hi Brian,

By design when you hit the Add More Files button - the current Items collection of the RadUpload control gets cleared in order to be re-populated after all selected files pass certain checks. This is not considered a bug but rather an implementation decision. And this behavior is causing the issue you described. However, your feedback on the matter raised a new discussion and we decided to add a feature request for changing this behavior of the control. And if the feature gathers enough popularity, we will definitely consider its implementation.

In the meantime, you can try binding the SelectedItem of the ComboBoxes to business items in order to keep the selection but I'm not sure if this approach would be suitable for your needs.

Best wishes,
Tina Stancheva
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Upload
Asked by
Brian
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Share this question
or