RadUpload In Ajax force postback

Thread is closed for posting
2 posts, 0 answers
  1. The KID
    The KID avatar
    24 posts
    Member since:
    May 2008

    Posted 23 May 2008 Link to this post

    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:

    1 function ValidateRadUpload1(source, arguments) 
    2
    3    arguments.IsValid = getRadUpload('<%= RadUpload1.ClientID %>').validateExtensions(); 
    4
    5              
    6 function realPostBack(eventTarget, eventArgument) 
    7
    8     $find("<%= RadAjaxPanel1.ClientID %>").__doPostback(eventTarget, eventArgument); 
    9
    10              
    11 function CloseAndRebind(args) 
    12
    13     GetRadWindow().Close(); 
    14     GetRadWind().BrowserWindow.refreshGridP(args); 
    15
    16              
    17 function GetRadWindow() 
    18
    19     var oWindow = null
    20     if(window.radWindow)  
    21          oWindow = window.radWindow; //Will work in Moz in all cases, includine classic dialog 
    22     else if(window.frameElement.radWindow) 
    23          oWindow = window.frameElement.radWindow; //IE (and Moz as well 
    24     return oWindow; 
    25
    26              
    27 function CancelEdit() 
    28
    29     GetRadWindow().Close(); 
    30


    How do i solve this problem?
  2. Erjan Gavalji
    Admin
    Erjan Gavalji avatar
    1455 posts

    Posted 26 May 2008 Link to this post

    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
Back to Top