Upload and Layout

Thread is closed for posting
4 posts, 0 answers
  1. hdgreetings.com
    hdgreetings.com avatar
    2 posts
    Member since:
    Jun 2008

    Posted 18 Jun 2008 Link to this post

    Hi, I'm evaluating RC for possible use on our site and have this question:

    Could the rad upload control be made like the one on this sample page?
        www.hdgreetings.com/personalize.aspx

    Specifically the questions are:
        1)  Note the "Add Photo" upload on the sample page has only one button, after the file is chosen the upload automatically begins

        2)  Note the sample page upload does not show any borders and does not show the progress bar until the upload begins

        3)  Note the small size of the progress bar.

    Any feedback on how practical these things are would be appreciated.

    Regards,
    LTG
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 18 Jun 2008 Link to this post

    Hi LTG,

    Yes, it is possible to create an application, which would look the same way using RadUpload. However, to achieve the immediate upload, RadUpload should be placed in a page, located in a separate frame/iframe. In addition, some javascript code should be used in order to show the file open dialog. Regarding the small size of the progress bar - RadProgressArea can be customized to fit the need.

    I hope this helps.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. hdgreetings.com
    hdgreetings.com avatar
    2 posts
    Member since:
    Jun 2008

    Posted 18 Jun 2008 Link to this post

    I appreciate your fast reply, I'm glad to hear this.

    If this is out of scope I understand, but to follow up:

    1) how would the separate iframe better enable the autoupload?

    2) are you sure it's possible programmatically open the file dialog without a real user click?  i haven't seen this done before in js.

    Thank you,
    LTG

  4. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 19 Jun 2008 Link to this post

    Hi LTG,

    The separate IFrame will help to have the two uploads run parallelly (e.g. select an image and an upload starts, select another image and the other upload starts while the first one is already running).
    Actually it is not possible to programmatically open the file open dialog, but the invisible file upload field trick can be used to achieve that.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top