EnableInlineProgress not working

7 posts, 0 answers
  1. jamie ooms
    jamie ooms avatar
    2 posts
    Member since:
    May 2010

    Posted 16 Mar 2011 Link to this post

    Hello,

    I have the following RadAsyncUpload control on my page:
    I set the EnableInlineProgress property to false but still i see the uploaded files above the control when selecting files.

    Also when i set the following property:

    ControlObjectsVisibility

     

    ="None"

     

     

     


    I see when i debug that this property throws an InvalidCast exception.


    is this a bug? Im using the 2010.3.1317.35 build


    <

     

    telerik:RadAsyncUpload ID="radUplFonts" runat="server" Width="290px" InputSize="35" MultipleFileSelection="Automatic" AllowedFileExtensions="otf,ttf" EnableInlineProgress="false" />

     

     

     

  2. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 21 Mar 2011 Link to this post

    Hello Jamie,

    In order to remove the files, which are situated above the RadAsyncUpload, you could use the following code snippet:
    $telerik.$(".RadUpload li").hide();
    $telerik.$(".RadUpload li:last").show();

    This could be either placed in the OnClientFilesSelected event handler function, if you don't want to see the files while being uploaded, or in the OnClientFilesUploaded event handler, if you want to hide them once they are uploaded.

    Greetings,
    Dimitar Terziev
    the Telerik team
  3. Shukhrat Nekbaev
    Shukhrat Nekbaev avatar
    73 posts
    Member since:
    Oct 2010

    Posted 24 Mar 2011 Link to this post

    Hi,

    I tried snippet above but it fails:

    <telerik:RadAsyncUpload runat="server" ID="RadAsyncUploadImageForNavNode" AllowedFileExtensions="jpg,jpeg,png,gif" CssClass="i1nvisible p1ixelWidthHeight"
                        MaxFileSize="5242880" MultipleFileSelection="Automatic" OnFileUploaded="RadAsyncUploadImageForNavNode_FileUploaded" EnableInlineProgress="true" 
                        MaxFileInputsCount="1" OnClientFileUploaded="RadAsyncUploadImageForNavNode_OnClientFileUploaded" Localization-Select="<%$ Resources:PGC, ProjectContentElement_UploadImage %>" OnClientFilesSelected="RadAsyncUploadImageForNavNode_OnClientFilesSelected">
                    </telerik:RadAsyncUpload>

    function RadAsyncUploadImageForNavNode_OnClientFileUploaded(sender, args) {
               $("#btnRefreshUploadedImageToCurrentProjectElementStub").click();
           }
           function RadAsyncUploadImageForNavNode_OnClientFilesSelected(sender, args) {
               $telerik.$(".RadUpload li").hide();
               $telerik.$(".RadUpload li:last").show();
           }


    JS error:
      Invalid pointer
      Telerik.Web.UI.WebResource.axd?_TSM_HiddenField_=RadScriptManager1_TSM&compress=1&_TSM_CombinedScripts_=%3b%3bSystem.Web.Extensions%2c+Version%3d4.0.0.0%2c+Culture%3dneutral%2c+PublicKeyToken%3d31bf3856ad364e35%3aen%3ac9d03845-da3c-45e9-ab05-79ee502af576%3aea597d4b%3ab25378d2%3bTelerik.Web.UI%2c+Version%3d2011.1.315.40%2c+Culture%3dneutral%2c+PublicKeyToken%3d121fae78165ba3d4%3aen%3ae1906d86-26ab-4194-a438-7a45017051f5%3a16e4e7cd%3af7645509%3aed16cbdc%3a68f76a79%3a24ee1bba%3a874f8ea2%3a2a2fc429%3af46195d3%3a1e771326%3aaa288e2d%3ae330518b%3a8e6f0d33%3a11a04f7e%3ae524c98b%3ac8618e41%3ae4f8f289%3ad312a85e, line 13373 character 1

    P.S.: I'm using latest components

    UPDATE: on IE 64-bit there is no that error, though I see green light (upload indicator) with file name anyway. My plan is not to show any internal progress, just "Select" button, I will use progress manager for indication.
  4. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 30 Mar 2011 Link to this post

    Hello Shukhrat,

    Thank you for the code.
    We noticed that you have set the MaxFileInputsCount="1".
    That means that you will be able to upload only one file.

    Also you have allowed multiple file selection. Since you have only one input filed, you should remove the file which has been uploaded first in order to start the upload of the second file.

    Are we missing something?

    Regards,
    Dimitar Terziev
    the Telerik team
  5. Shukhrat Nekbaev
    Shukhrat Nekbaev avatar
    73 posts
    Member since:
    Oct 2010

    Posted 31 Mar 2011 Link to this post

    Hi,

    no, I was just playing with those settings, I need only 1 file to be uploaded, anyway, when upload happens automatic postback occurs, so user will not have a chance remove it. That page is where, let's say, similar to "avatar" upload, you click button, choose picture - it get uploaded and applied instantly and another button appears - Remove image.
    I haven't checked yet "fail" scenarios, but now it behaves as I need, except inline progress, I'd like to show existing ProgressArea.
    Currently I tweak the view online progress by changing ruUploadProgress, but still, I'd like to switch if "off" and show progress area that I have.  Please refer another my post, where I manually start progress manager's polling, it shows statistics of files being uploaded, but polling of the server never stops, even more if I stay at same place and continue uploading files - polling speed increases.

    Thank you!

    My current working async upload:

    <telerik:RadAsyncUpload runat="server" ID="RadAsyncUploadImageForNavNode" AllowedFileExtensions="jpg,jpeg,png,gif"
                       CssClass="divToBeCentered" MaxFileSize="5242880" MultipleFileSelection="Disabled" 
                       OnFileUploaded="RadAsyncUploadImageForNavNode_FileUploaded" EnableInlineProgress="false" Width="120px"
                       MaxFileInputsCount="1" OnClientFileUploaded="RadAsyncUploadImageForNavNode_OnClientFileUploaded"
                       Localization-Select="<%$ Resources:PGC, ProjectContentElement_UploadImage %>"
                       Localization-Cancel="<%$ Resources:PGC, General_Cancel %>"
                       Localization-Remove="<%$ Resources:PGC, General_Remove %>"
                       >
                   </telerik:RadAsyncUpload>
  6. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1268 posts

    Posted 05 Apr 2011 Link to this post

    Hi Shukhrat,

    We noticed that you have set the EnableInlineProgress="false" , so it is expected that the inline progress will not appear.

    Regarding you problem with the RadProgressArea, could you please send us a short video which demonstrates the issue to examine it locally?

    You may use Jing. It is a free tool.

    All the best,
    Dimitar Terziev
    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
  7. Shukhrat Nekbaev
    Shukhrat Nekbaev avatar
    73 posts
    Member since:
    Oct 2010

    Posted 05 Apr 2011 Link to this post

    Hi,

    thx for reply.

    I think I've missed the understanding of what the inline progress is :) I though that if I set it to false I will not see not only "internal progress", but also a flickering round image and a file name that is being uploaded (I have small area and long file name with newlined cancel/remove doesn't fit too nice there) :) I have a feature similar to upload avatar button. I don't need to show anything there, no progress, nothing, user selects picture, upload happens, then goes automatic postback and viola, thumbnail is created. I'm using generic progress area to show to the user the overall progress. I customized the control through css for my needs.

    So... it's ok all :)

    Thanks again! :)
Back to Top