Additional Controls on RadUploadItem and Add More Files

2 posts, 0 answers
  1. Brian
    Brian avatar
    58 posts
    Member since:
    Jul 2011

    Posted 18 Oct 2011 Link to this post

    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:  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.
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 21 Oct 2011 Link to this post

    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 >>

Back to Top