RadAjaxManager Ajaxrequest from Client side

4 posts, 0 answers
  1. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 25 Feb 2012 Link to this post

    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


  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 27 Feb 2012 Link to this post

    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.
  3. Johnny
    Johnny avatar
    86 posts
    Member since:
    Dec 2010

    Posted 09 Mar 2012 Link to this post

    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', '');
                     
                
         
    }

  4. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 13 Mar 2012 Link to this post

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