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

Shifting logic of Add button to the browse button in CustomizingRadProgressAreaUI,CustomizingRadUploadUI

3 Answers 36 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Snehal
Top achievements
Rank 1
Snehal asked on 12 Mar 2009, 08:35 AM
Hi,
    I am using radUpload Control in my aspx page. I am working in .NET 2.0.
I want when user click on browse button and select any image and click on OK.
After this, there should be new row added below.
In other words, I want the functionality of the Add button shifted to the browse button after user selects file.

Please replay how can I achieve this?

3 Answers, 1 is accepted

Sort by
0
Accepted
Veselin Vasilev
Telerik team
answered on 13 Mar 2009, 08:17 AM
Hello Snehal,

You can subscribe to the OnClientFileSelected event and call the addFileInput() method of RadUpload in its event handler.

Best wishes,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Snehal
Top achievements
Rank 1
answered on 13 Mar 2009, 11:27 AM
Hi,
    In aspx page I have RadUpload as below:

<

rad:RadUpload SkinsPath="~/RadControls/Upload/Skins" Skin="Vista_New" ID="Radupload1"

 

 

runat="server" InitialFileInputsCount="1" OnClientFileSelected="fnAddNewRow()">

Now after selecting any file after clicking on browse button, then function fnAddNewRow() gets called.
Till this point, everything works perfect. The function I have written is as below:

 

function

fnAddNewRow()

 

{

 

   $find("<%= Radupload1.ClientID %>").addFileInput();
}

 

 

This is not working. I have tried in many different ways but  $find syntax is not working.
directly by using Radupload1.addFileInput(); says doesn't support property or method.

Please help.

Thanks ,
    Snehal

 

0
Genady Sergeev
Telerik team
answered on 13 Mar 2009, 04:28 PM
Hi Snehal,

As far as I can see from your code, your are using the classic controls, not ASP.AJAX ones. Thus the correct syntax is:

 function fileSelected(sender, eventArgs) { 
            sender.AddFileInput(); 
        } 


Kind regards,
Genady Sergeev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
Snehal
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Snehal
Top achievements
Rank 1
Genady Sergeev
Telerik team
Share this question
or