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

how to use radupload with radajaxpanel

9 Answers 290 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
goxel
Top achievements
Rank 1
goxel asked on 02 Feb 2009, 02:21 PM
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?

9 Answers, 1 is accepted

Sort by
0
goxel
Top achievements
Rank 1
answered on 02 Feb 2009, 02:24 PM
i think radupload doesnt work with radajaxpanel. is there any work-around for this problem?
0
goxel
Top achievements
Rank 1
answered on 02 Feb 2009, 02:53 PM
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
0
Durga
Top achievements
Rank 1
answered on 18 May 2009, 05:22 PM
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
0
Genady Sergeev
Telerik team
answered on 19 May 2009, 08:45 AM
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.
0
Arun
Top achievements
Rank 1
answered on 26 May 2009, 12:59 PM
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
0
Gordon Doherty
Top achievements
Rank 1
answered on 08 Feb 2011, 04:37 PM
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



0
Dimitar Terziev
Telerik team
answered on 11 Feb 2011, 09:53 AM
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.
0
Jaya
Top achievements
Rank 1
answered on 15 Oct 2014, 11:37 AM
Hi
Good Evening 
Every one

How to use radupload with radajaxpanel without Postback any one Guide me. I am new in Telerik Controls
0
Jaya
Top achievements
Rank 1
answered on 16 Oct 2014, 08:50 AM
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
Tags
Upload (Obsolete)
Asked by
goxel
Top achievements
Rank 1
Answers by
goxel
Top achievements
Rank 1
Durga
Top achievements
Rank 1
Genady Sergeev
Telerik team
Arun
Top achievements
Rank 1
Gordon Doherty
Top achievements
Rank 1
Dimitar Terziev
Telerik team
Jaya
Top achievements
Rank 1
Share this question
or