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

RadUpload In Ajax force postback

1 Answer 187 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
The KID
Top achievements
Rank 2
The KID asked on 23 May 2008, 04:31 PM
Hi Fellas

I'm having trouble with the new controls that force the page to do a postback with the upload control. With the old control i had to use some javascript to get the postback to work and now that's not doing it anymore. Here's my page layout

AjaxPanel with a Tabstrip and a multipage inside. Inside one of my pages is the upload control.

Here is the javascript i had to use with the old controls:

function ValidateRadUpload1(source, arguments) 
   arguments.IsValid = getRadUpload('<%= RadUpload1.ClientID %>').validateExtensions(); 
             
function realPostBack(eventTarget, eventArgument) 
    $find("<%= RadAjaxPanel1.ClientID %>").__doPostback(eventTarget, eventArgument); 
             
function CloseAndRebind(args) 
    GetRadWindow().Close(); 
    GetRadWind().BrowserWindow.refreshGridP(args); 
             
function GetRadWindow() 
    var oWindow = null
    if(window.radWindow)  
         oWindow = window.radWindow; //Will work in Moz in all cases, includine classic dialog 
    else if(window.frameElement.radWindow) 
         oWindow = window.frameElement.radWindow; //IE (and Moz as well 
    return oWindow; 
             
function CancelEdit() 
    GetRadWindow().Close(); 


How do i solve this problem?

1 Answer, 1 is accepted

Sort by
0
Erjan Gavalji
Telerik team
answered on 26 May 2008, 08:28 AM
Hi Mike,

To my regret the code you sent us does not show the way some control is forced to make a postback instead of a callback. I'm attaching a small page, demonstrating RadUpload in a PageView of a RadMultiPage, placed inside a RadAjaxPanel, which demonstrates one of the approaches to initiate a real postback instead of an Ajax call.

If that does not help, can you prepare a small page, demonstrating the problem you experience and send it it to us via a formal support ticket?

Kind regards,
Erjan Gavalji
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Upload (Obsolete)
Asked by
The KID
Top achievements
Rank 2
Answers by
Erjan Gavalji
Telerik team
Share this question
or