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

Call Select from outside

2 Answers 45 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Moroianu George-Gabriel
Top achievements
Rank 1
Moroianu George-Gabriel asked on 24 Jan 2011, 04:23 PM
Hi,
I have a question regarding AsyncUploader. I use this control to upload multiple files(images) and everything is working perfect. But I have a great problem regarding the layout. What I need is a button to call the function that the button " Select " calls it. I mean a button called "Load Photos" for example, which once clicked to open the window "Open" where I can select the files I need. A js script is perfect, a code behind will do also.
Thank you in advance,
Moroianu George

2 Answers, 1 is accepted

Sort by
0
Dimitar Terziev
Telerik team
answered on 27 Jan 2011, 10:05 AM
Hi Moroianu,

In general it's not possible to open the select dialog window through javascript function. This kind of scenarios is not supported by all browsers. Since you would like to open this dialog through button click event, why don't you use the existing select button and just change it's name to "Load Photos".
In order to change the text use the following property Localization-Select="Load Photos".

Kind regards,
Dimitar Terziev
the Telerik team
Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Moroianu George-Gabriel
Top achievements
Rank 1
answered on 27 Jan 2011, 12:51 PM
Hi,
I am sorry, I think that I was not very clear. :) My problem is that i need some changes in layout, the Load Photos button to remain in the same <span> with others buttons and the list of the loaded photos to be in another one. I understood that is not possible to make this modification in the asyncuploader, and I was wondering if it is possible to call the event from outside. Now I see that is not possible also... I will check other ways...
But, if you have other sugestions, please tell me! :)
Thank you for your time, 
Moroianu George
Tags
AsyncUpload
Asked by
Moroianu George-Gabriel
Top achievements
Rank 1
Answers by
Dimitar Terziev
Telerik team
Moroianu George-Gabriel
Top achievements
Rank 1
Share this question
or