AjaxManagerProxy not working

5 posts, 0 answers
  1. Rational Animal
    Rational Animal avatar
    47 posts
    Member since:
    Oct 2006

    Posted 12 Oct 2007 Link to this post

    I have a user control, that if I just put the rad ajax manager on it and disable it on the parent page, the page posts back fully (instead of ajax), and if I put the ajax manager on the page and the proxy (and a script proxy) on the user control, then it doesn't do anything at all.

    Here's the basic layout of the page:

     

    <asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"/>  
    <telerik:RadAjaxManagerProxy ID="ram" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="rcMonth">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="rcPlanning" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
        </AjaxSettings> 
    </telerik:RadAjaxManagerProxy> 
     
    <asp:label runat="server" ID="lblMonth" AssociatedControlID="rcMonth">Month: </asp:label><br /> 
    <radC:RadComboBox ID="rcMonth" runat="server" OnSelectedIndexChanged="rcMonth_SelectedIndexChanged" AutoPostBack="true">  
        <Items> 
            <radC:RadComboBoxItem Value="1" Text="January" /> 
            <radC:RadComboBoxItem Value="2" Text="February" /> 
            <radC:RadComboBoxItem Value="3" Text="March" /> 
            <radC:RadComboBoxItem Value="4" Text="April" /> 
            <radC:RadComboBoxItem Value="5" Text="May" /> 
            <radC:RadComboBoxItem Value="6" Text="June" /> 
            <radC:RadComboBoxItem Value="7" Text="July" /> 
            <radC:RadComboBoxItem Value="8" Text="August" /> 
            <radC:RadComboBoxItem Value="9" Text="September" /> 
            <radC:RadComboBoxItem Value="10" Text="October" /> 
            <radC:RadComboBoxItem Value="11" Text="November" /> 
            <radC:RadComboBoxItem Value="12" Text="December" /> 
        </Items> 
    </radC:RadComboBox> 
     
    <telerik:RadCalendar ID="rcPlanning" runat="server" Font-Names="Arial, Verdana, Tahoma" 
        ForeColor="Black" Style="border-color: #ececec" MonthLayout="Layout_7columns_x_6rows" Width="950px" Height="600px" PresentationType="Preview" DayStyle-BorderStyle="solid" DayStyle-BorderWidth="1" WeekendDayStyle-BorderWidth="1" WeekendDayStyle-BorderStyle="Solid" WeekendDayStyle-BorderColor="black" DayStyle-BorderColor="black" > 
    </telerik:RadCalendar> 
     

    The combo box has an server side event that should fire on the ajax request and update the calendar. (or at least this is my understanding)

    If I do this with an ajax panel with both inside it, everything works fine.

    What am I doing wrong?

  2. Rational Animal
    Rational Animal avatar
    47 posts
    Member since:
    Oct 2006

    Posted 12 Oct 2007 Link to this post

    I lied. It doesn't work in an ajax panel either (at least not a telerik one)
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. John
    John avatar
    416 posts
    Member since:
    Oct 2006

    Posted 15 Oct 2007 Link to this post

    hi,

    could you please paste your aspx declaration



    thank you...
    <John:Peel />
  5. Rational Animal
    Rational Animal avatar
    47 posts
    Member since:
    Oct 2006

    Posted 15 Oct 2007 Link to this post

    1     <telerik:RadAjaxManager ID="ram" runat="server" EnableAJAX="true">  
    2       
    3     </telerik:RadAjaxManager> 
    4     <script type="text/javascript">  
    5     //<![CDATA[
    6
    7     function Appointment_Over(event) {       
    8         var e = document.getElementById("ToolTip");   
    9              
    10         e.innerHTML = event.srcElement.getAttribute("Tooltip");
    11                    
    12         e.style.left = event.clientX;
    13         e.style.top = event.clientY;
    14         e.style.visibility = "visible";
    15     }
    16     
    17     function Appointment_Leave(event) {
    18         var e = document.getElementById("ToolTip");
    19         e.style.visibility = "hidden";
    20     }
    21     //]]> 
    22     </script> 
    23     <div id="Tooltip" class="AppToolTip"></div>     
    24     <radTS:RadMultiPage ID="rmpViews" runat="server" RenderSelectedPageOnly="true">  
    25         <radTS:PageView ID="pvCollaborate" runat="server">  
    26             <uc1:CollaborativeView ID="CollaborativeView1" runat="server" /> 
    27          </radTS:PageView> 
    28          <radTS:PageView ID="pvPlanning" runat="server">  
    29             <uc3:PlanningView ID="PlanningView1" runat="server" /> 
    30          </radTS:PageView> 
    31          <radTS:PageView ID="pvDaySheet" runat="server">  
    32             <uc2:DaySheetView ID="DaySheetView1" runat="server" /> 
    33          </radTS:PageView> 
    34     </radTS:RadMultiPage> 
    35 </asp:Content> 
    36  
    37 <asp:Content ID="Content2" ContentPlaceHolderID="RibbonBar" Runat="Server">             
    38     <table class="TableGroup" cellpadding="0" cellspacing="0">  
    39         <tr> 
    40             <td class="GroupLeft" rowspan="2"></td> 
    41             <td class="GroupMiddle">  
    42                 <span> 
    43                 <runat="server" id="btnCollaborate" href="/Appointments/Schedule.aspx?View=Collaborate" class="GroupItem">  
    44                     <img src="/images/buttons/rolodex32.png" alt="Collabrative View" />Collaborate  
    45                 </a> 
    46                 </span> 
    47                 <span> 
    48                 <runat="server" id="btnPlanning" href="/Appointments/Schedule.aspx?View=Planning" class="GroupItem">  
    49                     <img src="/images/buttons/monthview32.png" alt="Planning View" />Plan  
    50                 </a> 
    51                 </span> 
    52                 <span> 
    53                 <runat="server" id="btnDaysheet" href="/Appointments/Schedule.aspx?View=DaySheet" class="GroupItem" > 
    54                     <img src="/images/buttons/daysheet32.png" alt="Your Daysheet" />Your Day  
    55                 </a> 
    56                 </span> 
    57             </td> 
    58             <td class="GroupRight" rowspan="2"></td> 
    59             <td class="GroupLeft" rowspan="2"></td> 
    60             <td class="GroupMiddle">  
    61                 <span> 
    62                 <runat="server" id="A1" href="#" class="GroupItem">  
    63                     <img src="/images/buttons/Today32.png" alt="Today" />Today  
    64                 </a> 
    65                 </span> 
    66                 <img src="/images/contents-separator.png" alt="|" /> 
    67                 <span> 
    68                 <runat="server" id="A2" href="#" class="GroupItem">  
    69                     <img src="/images/buttons/BackADay32.png" alt="Back A Day" />Previous Day  
    70                 </a> 
    71                 </span> 
    72                 <span> 
    73                 <runat="server" id="A3" href="#" class="GroupItem">  
    74                     <img src="/images/buttons/ForwardADay32.png" alt="Next Day" />Next Day  
    75                 </a> 
    76                 </span> 
    77                 <img src="/images/contents-separator.png" alt="|" /> 
    78                 <span> 
    79                 <runat="server" id="A4" href="#" class="GroupItem">  
    80                     <img src="/images/buttons/BackAWeek32.png" alt="Previous Week" />Previous Week  
    81                 </a> 
    82                 </span> 
    83                 <span> 
    84                 <runat="server" id="A5" href="#" class="GroupItem">  
    85                     <img src="/images/buttons/ForwardAWeek32.png" alt="Next Week" />Next Week  
    86                 </a> 
    87                 </span> 
    88             </td> 
    89             <td class="GroupRight" rowspan="2"></td> 
    90             <td class="GroupLeft" rowspan="2"></td> 
    91             <td class="GroupMiddle">  
    92                 <span> 
    93                 <runat="server" id="A6" href="#" class="GroupItem">  
    94                     <img src="/images/buttons/Refresh32.png" alt="Refresh" />Refresh  
    95                 </a> 
    96                 </span>      
    97                 <img src="/images/contents-separator.png" alt="|" />          
    98                 <span> 
    99                 <runat="server" id="A7" href="#" class="GroupItem">  
    100                     <img src="/images/buttons/Print32.png" alt="Print" />Print  
    101                 </a> 
    102                 </span>      
    103             </td> 
    104             <td class="GroupRight" rowspan="2"></td> 
    105             <td class="GroupLeft" rowspan="2"></td> 
    106             <td class="GroupMiddle">  
    107                 <span> 
    108                 <runat="server" id="A8" href="/appointments/EditDetail.aspx" class="GroupItem">  
    109                     <img src="/images/buttons/AppointmentNew32.png" alt="New Appointment" />New Appointment  
    110                 </a> 
    111                 </span>      
    112             </td> 
    113             <td class="GroupRight" rowspan="2"></td> 
    114  
    115         </tr> 
    116         <tr> 
    117             <td class="GroupLabel">Views</td> 
    118             <td class="GroupLabel">Timeline</td> 
    119             <td class="GroupLabel">Detail</td> 
    120             <td class="GroupLabel">New</td> 
    121         </tr> 
    122     </table>      
    123  

    Here's the code base as it is right now. The javascript is referenced by all of my user controls but shouldn't have any affect on anything.
  6. Plamen Peshev
    Admin
    Plamen Peshev avatar
    886 posts

    Posted 16 Oct 2007 Link to this post

    Hi Rational,


    I had a look at the code fragment that you use and created a simple project to test it. Unfortunately, I could not reproduce the problem you describe. The definitions of the RadComboBox and RadCalendar controls look correct. If you still face the same problem, it would be really helpful if you could isolate a small and working subproject demonstrating the issue, so we can compile the project and see the problem locally? Please open a new support thread and attach the files there.

    Regards,
    Plamen
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017