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

RadAjaxManager Ajaxrequest from Client side

3 Answers 950 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Johnny
Top achievements
Rank 2
Johnny asked on 25 Feb 2012, 10:30 AM
i need to update panels from client side  RadWindow ClientClose event
depend the return value i need to update Panels
for example if return value = "1"
i need to update Panel1

if return value = "2"
i need to update Panel 2

how to achive this


3 Answers, 1 is accepted

Sort by
0
Maria Ilieva
Telerik team
answered on 27 Feb 2012, 03:37 PM
Hello Johnny,

You could invoke ajaxRequest on the RadWindow ClientClose event with an specific argument and on the server in the server OnAjaxRequest event check the e.argument and update the needed control depends on it.

I hope this helps.

Regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Johnny
Top achievements
Rank 2
answered on 09 Mar 2012, 09:51 AM
hi this ajaxRequestWithTarget not working if it is ContentPage
RadScriptManager is in Master Page
RadAjaxManager is in Content Page
i make ajaxRequestWithTarget Element in the RadTreeNode Client Click
the Loading panel is showing but the Button Click Event Doesn't fire
how to solve this
<telerik:RadAjaxManager ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1"   runat="server">
  
          <AjaxSettings>           
          
               
               <telerik:AjaxSetting  AjaxControlID="CheckoutFileViewBtn" >
                  <UpdatedControls>
                  
                                              
                      <telerik:AjaxUpdatedControl ControlID="PanelViewerPage"  />
                      <telerik:AjaxUpdatedControl ControlID="hiddenPanel"  />
                      <telerik:AjaxUpdatedControl ControlID="OperationBtnPanel"  />
                                            
                  </UpdatedControls>
              </telerik:AjaxSetting>
              
          </AjaxSettings>
 
 
           
          <ClientEvents  OnRequestStart="OnRequestStart" OnResponseEnd="OnResponseEnd" />
      </telerik:RadAjaxManager>
<asp:Button ID="CheckoutFileViewBtn" style="display:none;" runat="server" Text="Button" />
Protected Sub CheckoutFileViewBtn_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckoutFileViewBtn.Click
 
  
          FileDownloadBtn.Enabled = False
      
  End Sub
Javascript
function myViewsTree_OnClientNodeClicking(sender, args) {
 
                args.set_cancel(true);
                var ajaxManager = $find("ctl00_ContentPlaceHolder1_RadAjaxManager1");
                ajaxManager.ajaxRequestWithTarget('ContentPlaceHolder1_CheckoutFileViewBtn', '');
                 
            
     
}

0
Maria Ilieva
Telerik team
answered on 13 Mar 2012, 04:00 PM
Hi,

Please try to access the RadAjaxManager on the client using its GetCurrent() method as described here.
Give this a try and let me know if it makes any difference.

Regards,
Maria Ilieva
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Ajax
Asked by
Johnny
Top achievements
Rank 2
Answers by
Maria Ilieva
Telerik team
Johnny
Top achievements
Rank 2
Share this question
or