how to use radupload with radajaxpanel

Thread is closed for posting
10 posts, 0 answers
  1. goxel
    goxel avatar
    9 posts
    Member since:
    Jan 2009

    Posted 02 Feb 2009 Link to this post

    hi,

    i have a form and some fields(textboxes, pickers and a upload comp) in it. This form has radajaxpanel. when i submit this form, radupload doesnt work with radajaxpanel? when i remove radajaxpanel, radupload works successfully. why, i couldnt understand.

     can you  help me?
  2. goxel
    goxel avatar
    9 posts
    Member since:
    Jan 2009

    Posted 02 Feb 2009 Link to this post

    i think radupload doesnt work with radajaxpanel. is there any work-around for this problem?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. goxel
    goxel avatar
    9 posts
    Member since:
    Jan 2009

    Posted 02 Feb 2009 Link to this post

    i found this work-around
    http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html

    but this work-around is not useful for me
    because radajaxpanel must work in my situation
  5. Durga
    Durga avatar
    10 posts
    Member since:
    May 2009

    Posted 18 May 2009 Link to this post

    Hi Goxel,

    Have you found the solution for radajaxpanel problem.

    I have the same problem. i want to convert uploaded file into stream bytes and send to across the database using rad upload. I have been facing the problem with RadAjaxPanel and RadUpload controls.

    Any help would be appreciated.

    Thanks in Advance
    Durga
  6. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 19 May 2009 Link to this post

    Hi Durga,

    RadUpload cannot upload files using AJAX calls. This is a limitation of the XmlHttpRequest component, used in all AJAX frameworks for asynchronous calls to the application. In order to upload a file your application must perform a full page postback. Unfortunately, at this moment there is no workaround to this. You cannot use AJAX behavior while uploading files.

    Kind regards,
    Genady Sergeev
    the Telerik team

    Instantly find answers to your questions on the newTelerik Support Portal.
    Check out the tipsfor optimizing your support resource searches.
  7. Arun
    Arun avatar
    15 posts
    Member since:
    Apr 2009

    Posted 26 May 2009 Link to this post

    Hi i am using a radUpload control in a ajaxify panelbar. I came to know across seeing many forums since there is no post back the upload control always gives the count as "0". Later when i searched across i got a link which said how to used the upload control in the ajaxify panel bar. I tried the way but didn't get any changes. The link is
    "http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html"

    in the topic "Alternative workaround for RadAjaxPanel (and RadGrid classic)"
    I have a doubt in this code.. the CodeBehind says to create a click event..

    protected void Page_Load(object sender, EventArgs e)
    {
     
    if (!IsPostback)
     {
       GetPostBackEventReference(
    this);
       ButtonSubmit.Attributes.Add(
    "onclick",
         
    string.Format("realPostBack('{0}', ''); return false;", ButtonSubmit.UniqueID));
     }
    }


    The script code is

    function realPostBack(eventTarget, eventArgument)
     {
       __doPostBack(eventTarget, eventArgument);
     }

    Why do we send a single argument. i mean we just send the eventTarget  and get eventArgument  also which is always null. I am not clear in this.. if some one gets this to work please help me out in this as i am stuck in it.. and more over the solution given here is not working for me. :(

    Sorry i mistakenly happen to open a new thread..

    thanks in advance
    arun.m
  8. Gordon Doherty
    Gordon Doherty avatar
    1 posts
    Member since:
    Mar 2010

    Posted 08 Feb 2011 Link to this post

    Hi,

    I have a RadUpload inside a RadAjaxPanel. To get around the known issues with this I used the workaround here: http://www.telerik.com/help/aspnet-ajax/upload_uploadingajax.html ...which effectively disables AJAX for my submit button.

    This has left me with just one problem - when I click my submit button, at the bottom of a longish page, to commit my uploads to the database, this causes a full postback and the page reloads, losing the place at the bottom.

    I'm in a position where I can't change the layout of the page, so effectively I need the submit button to maintain scroll position on postback (across all browsers)..

    Any advice would be greatly appreciated.

    Cheers,
    Gordopolis



  9. Dimitar Terziev
    Admin
    Dimitar Terziev avatar
    1266 posts

    Posted 11 Feb 2011 Link to this post

    Hello Gordon,

    Try setting MaintainScrollPositionOnPostback="true" property in the Page derective.
    This way the page should be scrolled to the bottom automatically after the postback.
    I hope this would solve your issue.

    All the best,
    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.
  10. Jaya
    Jaya avatar
    81 posts
    Member since:
    Mar 2011

    Posted 15 Oct 2014 in reply to Dimitar Terziev Link to this post

    Hi
    Good Evening 
    Every one

    How to use radupload with radajaxpanel without Postback any one Guide me. I am new in Telerik Controls
  11. Jaya
    Jaya avatar
    81 posts
    Member since:
    Mar 2011

    Posted 16 Oct 2014 in reply to goxel Link to this post

    Ofcourse ,
    My code like this

      <telerik:RadAjaxLoadingPanel ID="Rad1" runat="server"  />
           <telerik:RadAjaxPanel ID="Rad2" runat="server"  LoadingPanelID="Rad1">
    <asp:FileUpload ID="Fup1" runat="server" />
    </telerik:RadAjaxPanel>  

    But I canot retrieved the posted file how will do this? can u solve this
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017