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

Full Postback question

1 Answer 46 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ed Staffin
Top achievements
Rank 1
Ed Staffin asked on 18 Dec 2008, 07:20 PM

Hi,
I found this bit of code else where to tell a RadAjaxPanel to do a full postback. 

First in the code behind put:

 

cmdExport.Attributes.Add(

"onclick", String.Format("realPostBack('{0}', ''); return false;", cmdExport.UniqueID))

 

 

Then in the aspx put:

<telerik:RadCodeBlock id="codeblock1" runat="server">  
   <script type="text/javascript">  
       function realPostBack(eventTarget, eventArgument)  
       {  
           $find("< % = RadAjaxPanel1.ClientID % >").__doPostBack(eventTarget, eventArgument);  
       }  
    </script> 
</telerik:RadCodeBlock> 
 

The only problem is that I am not using a RadAjaxPanel, I'm just using a RadAjaxManager.
How can I do the same thing with a RadAjaxManaged control?
Thanks ... Ed

1 Answer, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 19 Dec 2008, 07:08 AM
Hello Ed,

Please check these demos for more info:
http://demos.telerik.com/aspnet-ajax/Ajax/Examples/Manager/PartialPostBacks/DefaultCS.aspx
http://demos.telerik.com/aspnet-ajax/Controls/Examples/Integration/RadUploadInAjaxifiedGrid/DefaultCS.aspx?product=grid

Greetings,
Vlad
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Ajax
Asked by
Ed Staffin
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Share this question
or