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" />
      <uc3:BmpDemographic  ID="BmpDemographic1" runat="server" />    
    </td><td rowspan="3">
        <uc1:BmpRcds ID="BmpRcds1" runat="server" />
    </tr> </table>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1"  Runat="server" 
            Skin="Default" >
    <telerik:RadAjaxManager ID="RadAjaxManager1" DefaultLoadingPanelID="RadAjaxLoadingPanel1" runat="server">
         <telerik:AjaxSetting AjaxControlID="BmpSelectList1">
             <telerik:AjaxUpdatedControl ControlID="BmpDemographic1"  />
             <telerik:AjaxUpdatedControl ControlID="BmpRcds1"  />
           <telerik:AjaxSetting AjaxControlID="BmpDemographic1">
             <telerik:AjaxUpdatedControl ControlID="BmpSelectList1" LoadingPanelID="RajAjaxLoadingPanel1" />
             <telerik:AjaxSetting AjaxControlID="BmpRcds1">
             <telerik:AjaxUpdatedControl ControlID="BmpSelectList1" />

    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");
       <telerik:RadAjaxManagerProxy ID="AjaxManagerProxy1"  runat="server">
            <telerik:AjaxSetting AjaxControlID="AsocDD">
                    <telerik:AjaxUpdatedControl ControlID="status" LoadingPanelID="RadAjaxLoadingPanel1" />
            <telerik:AjaxSetting AjaxControlID="AdvisorDD">
                    <telerik:AjaxUpdatedControl ControlID="status" LoadingPanelID="RadAjaxLoadingPanel1" />
     <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" Runat="server" 
              Skin="Default" >

    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
    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.

    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