RadAjaxProxy and UserControls How to handle other controls

2 posts, 0 answers
  1. mac
    mac avatar
    137 posts
    Member since:
    May 2008

    Posted 14 Jan 2011 Link to this post

    The question is twofold:
    Question 1. How, when I have an update in BmpDemographic1 can I get the ajax to fire on BmpSelectList? Right now when I update BmpDemographic1, the ajax files on the updatedcontrol and BmpSelectList also updates as it is being told to. However the loadingpanel does not fire. I am assuming the following.. on the aspx RadajaxManager, declare the user controls and their related updatedcontrols... ie UC1 manages UC2 and UC3. When UC2 is updated, Update UC1.

    aspx page code:

     

    <uc2:BmpSelectList ID="BmpSelectList1" runat="server" />
      <table><tr><td
      <uc3:BmpDemographic  ID="BmpDemographic1" runat="server" />    
    </td><td rowspan="3">
        <uc1:BmpRcds ID="BmpRcds1" runat="server" />
        </td>
    </tr> </table>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1"  Runat="server" 
            Skin="Default" >
        </telerik:RadAjaxLoadingPanel>
              
    <telerik:RadAjaxManager ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1" runat="server">
       <AjaxSettings>
         <telerik:AjaxSetting AjaxControlID="BmpSelectList1">
             <UpdatedControls>
             <telerik:AjaxUpdatedControl ControlID="BmpDemographic1"  />
             <telerik:AjaxUpdatedControl ControlID="BmpRcds1"  />
             </UpdatedControls>
             </telerik:AjaxSetting>
           <telerik:AjaxSetting AjaxControlID="BmpDemographic1">
             <UpdatedControls>
             <telerik:AjaxUpdatedControl ControlID="BmpSelectList1" LoadingPanelID="RajAjaxLoadingPanel1" />
             </UpdatedControls>
             </telerik:AjaxSetting>
             <telerik:AjaxSetting AjaxControlID="BmpRcds1">
             <UpdatedControls>
             <telerik:AjaxUpdatedControl ControlID="BmpSelectList1" />
             </UpdatedControls>
             </telerik:AjaxSetting>
             </AjaxSettings>
          </telerik:RadAjaxManager>


    Within my ascx files I have the following:
    <telerik:RadCodeBlock ID="RadCodeBlock1" runat="server">
            <script type="text/javascript">
                function myUserControlClickHandler() {
                    $find("<%= RadAjaxManager.GetCurrent(Page).ClientID %>").ajaxRequest("content");
                }
            </script>
        </telerik:RadCodeBlock>    
           
       <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1"  runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="AsocDD">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="status" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
            <telerik:AjaxSetting AjaxControlID="AdvisorDD">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="status" LoadingPanelID="RadAjaxLoadingPanel1" />
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>
      
     <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" 
              Skin="Default" >
          </telerik:RadAjaxLoadingPanel>

    Within my code I essentially say when the dropdown is updated, throw and update request back to the other uc. This gets handled in the  page_Prerender event on the .aspx.vb page
    If IsNumeric(BmpDemographic1.Update) = True Then
    BmpSelectList1.SendID = BmpDemographic1.Update ' Keep the selected row
    BmpSelectList1.updategrid() ' Radgrid.mastertable.rebind()
    BmpDemographic1.Update = Nothing ' clear the update property
    End If

    Any Idea why  I can't get the loading panel on BmpSelectList1 to show?

    -------------------------------------------




  2. Maria Ilieva
    Admin
    Maria Ilieva avatar
    4017 posts

    Posted 19 Jan 2011 Link to this post

    Hi Mac,

    I would suggest you to show and hide the RadAjaxLoadingPanel explicitly on Ajax Request as it is described in the following help topic. Test this approach and let me know if it helps.


    Regards,
    Maria Ilieva
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Back to Top