PostbackTrigger control in another usercontrol (LOD)

5 posts, 1 answers
  1. Larkin
    Larkin avatar
    11 posts
    Member since:
    Nov 2011

    Posted 28 Nov 2011 Link to this post

    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
  2. Answer
    Bozhidar
    Admin
    Bozhidar avatar
    1103 posts

    Posted 29 Nov 2011 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Larkin
    Larkin avatar
    11 posts
    Member since:
    Nov 2011

    Posted 29 Nov 2011 Link to this post

    That answers my question--thanks!
  5. Greg Horvath
    Greg Horvath avatar
    9 posts
    Member since:
    Aug 2009

    Posted 16 Jan 2013 Link to this post

    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?
  6. Plamen
    Admin
    Plamen avatar
    2734 posts

    Posted 21 Jan 2013 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017