Welcome Guest Search | Active Topics | Sign In | Register

AJAXUploaderProgressDialog in AJAXUploader in Kb instead Bytes Options
EDP
Posted: Wednesday, July 6, 2011 5:26:36 AM
Rank: Member
Groups: Member

Joined: 11/15/2010
Posts: 23
I have this code:

<eo:AJAXUploaderProgressDialog runat="server" ID="AJAXUploaderProgressDialog1" Width="250px" HeaderHtml="Subiendo..."
BorderWidth="1px" BorderStyle="Solid" BorderColor="#D9D9D9" ShadowColor="#D9D9D9"
RestoreButtonUrl="00070103" CloseButtonUrl="00070101" MinimizeButtonUrl="00070102"
ResizeImageUrl="00020014" ControlSkinID="None" AllowResize="false" ShadowDepth="1" Height="200px"
ProgressTextFormat="<p>Subiendo...{transferred} bytes de {total} bytes</p><p>({percentage}%) Hecho.</p><p>Current file: {current_file_name}</p><p>Tiempo estimado: {elapsed_seconds} segundo(s)</p><p>Tiempo restante: {estimated_remaining_seconds} segundo(s)</p>" IsModal="True">
<HeaderStyleActive CssClass="fondo_gris_oscuro_txt_gris_claro"></HeaderStyleActive>
<FooterStyleActive CssClass="fondo_gris_intermedio_txt_gris_oscuro"></FooterStyleActive>
<FooterTemplate><p style="text-align: center"><asp:ImageButton runat="server" ID="CancelButton" ImageUrl="~/_imagenes/_home_login/boton_cancelar.png" /></p>
</FooterTemplate>
<ContentStyleActive CssClass="fondo_gris_claro_txt_azul"></ContentStyleActive>
<ContentTemplate>
<p><eo:ProgressBar ID="ProgressBar" runat="server" ControlSkinID="Windows_XP"></eo:ProgressBar></p>
<asp:PlaceHolder ID="ProgressTextPlaceHolder" runat="server">Progress Text Place Holder</asp:PlaceHolder>
</ContentTemplate>
</eo:AJAXUploaderProgressDialog>

I n this code the dialog show number of bytes of the uploading file, but i want that show the number of Kbytes. How can i do? Where a need to chage the [transferred] variable to show Kbytes?

Thank you and best regards
eo_support
Posted: Wednesday, July 6, 2011 10:17:23 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

You will need to handle the AJAXUploader's ClientSideOnProgress, then use JavaScript to display any information based on progress information passed to you through that handler.

http://doc.essentialobjects.com/library/1/eo.web.ajaxuploader.clientsideonprogress.aspx

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.