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

PostbackTrigger control in another usercontrol (LOD)

4 Answers 135 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Larkin
Top achievements
Rank 1
Larkin asked on 28 Nov 2011, 09:22 PM
I have a RadAsyncUpload control in one usercontrol, loaded dynamically (wizard-style using RadTabStrip and RadMultiPage). I don't want to trigger the FileUploaded event until the Save button is clicked in the last panel of the wizard. Is this scenario supported? There will be a button in each PageView that will share the same ID--not a problem given that they are in different naming containers, of course, but perhaps a problem for RadAsyncUpload? How does it resolve the Control IDs contained in the PostbackTriggers property?

Thanks in advance for your help,

Larkin

4 Answers, 1 is accepted

Sort by
0
Accepted
Bozhidar
Telerik team
answered on 29 Nov 2011, 01:40 PM
Hi Larkin,

If I understand correctly, you want to have the AsyncUpload control in one PageView, and a Button, which triggers the UploadPostback, in another PageView. That's not a problem and RadAsyncUpload works fine in this scenario. I've attached a sample page showing this functionality. 
If it doesn't work for you, or you use a different approach, please provide a sample page showing exactly what you want to implement.

Best wishes,
Bozhidar
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now
0
Larkin
Top achievements
Rank 1
answered on 29 Nov 2011, 02:07 PM
That answers my question--thanks!
0
Greg Horvath
Top achievements
Rank 1
answered on 16 Jan 2013, 06:54 PM
I have a question similar for this, that the example does not address. The example address two controls in the same naming containers. Is it possible to reference a post back as a control in a different user control?

E.g. Control A has control repeating block for upload and data (control b). Below the repeating block is a button to upload all data (btnUploadAll).

Control B has the RadAsyncUpload and a set of metadata for the document. Is it possible to wire the postback trigger to the parents (btnUpLoadAll) button?
0
Plamen
Telerik team
answered on 21 Jan 2013, 10:23 AM
Hi Greg,

 
The PostBackTriggers property can be used if you know the exact  ID of the button the will be assigned to it and will work properly if RadAsyncUpload  is rendered on the page. 

Hope this will be helpful. If in your case this is somehow not working please elaborate a little bit so we could be more help.

All the best,
Plamen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AsyncUpload
Asked by
Larkin
Top achievements
Rank 1
Answers by
Bozhidar
Telerik team
Larkin
Top achievements
Rank 1
Greg Horvath
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or