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

AjaxManagerProxy not working

4 Answers 141 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Rational Animal
Top achievements
Rank 1
Rational Animal asked on 12 Oct 2007, 08:25 PM

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?

4 Answers, 1 is accepted

Sort by
0
Rational Animal
Top achievements
Rank 1
answered on 12 Oct 2007, 08:29 PM
I lied. It doesn't work in an ajax panel either (at least not a telerik one)
0
plamen
Top achievements
Rank 1
answered on 15 Oct 2007, 10:13 AM
hi,

could you please paste your aspx declaration



thank you...
<John:Peel />
0
Rational Animal
Top achievements
Rank 1
answered on 15 Oct 2007, 01:15 PM
    <telerik:RadAjaxManager ID="ram" runat="server" EnableAJAX="true">  
      
    </telerik:RadAjaxManager> 
    <script type="text/javascript">  
    //<![CDATA[
    function Appointment_Over(event) {       
        var e = document.getElementById("ToolTip");   
             
        e.innerHTML = event.srcElement.getAttribute("Tooltip");
                   
        e.style.left = event.clientX;
        e.style.top = event.clientY;
        e.style.visibility = "visible";
    }
    
    function Appointment_Leave(event) {
        var e = document.getElementById("ToolTip");
        e.style.visibility = "hidden";
    }
    //]]> 
    </script> 
    <div id="Tooltip" class="AppToolTip"></div>     
    <radTS:RadMultiPage ID="rmpViews" runat="server" RenderSelectedPageOnly="true">  
        <radTS:PageView ID="pvCollaborate" runat="server">  
            <uc1:CollaborativeView ID="CollaborativeView1" runat="server" /> 
         </radTS:PageView> 
         <radTS:PageView ID="pvPlanning" runat="server">  
            <uc3:PlanningView ID="PlanningView1" runat="server" /> 
         </radTS:PageView> 
         <radTS:PageView ID="pvDaySheet" runat="server">  
            <uc2:DaySheetView ID="DaySheetView1" runat="server" /> 
         </radTS:PageView> 
    </radTS:RadMultiPage> 
</asp:Content> 
 
<asp:Content ID="Content2" ContentPlaceHolderID="RibbonBar" Runat="Server">             
    <table class="TableGroup" cellpadding="0" cellspacing="0">  
        <tr> 
            <td class="GroupLeft" rowspan="2"></td> 
            <td class="GroupMiddle">  
                <span> 
                <runat="server" id="btnCollaborate" href="/Appointments/Schedule.aspx?View=Collaborate" class="GroupItem">  
                    <img src="/images/buttons/rolodex32.png" alt="Collabrative View" />Collaborate  
                </a> 
                </span> 
                <span> 
                <runat="server" id="btnPlanning" href="/Appointments/Schedule.aspx?View=Planning" class="GroupItem">  
                    <img src="/images/buttons/monthview32.png" alt="Planning View" />Plan  
                </a> 
                </span> 
                <span> 
                <runat="server" id="btnDaysheet" href="/Appointments/Schedule.aspx?View=DaySheet" class="GroupItem" > 
                    <img src="/images/buttons/daysheet32.png" alt="Your Daysheet" />Your Day  
                </a> 
                </span> 
            </td> 
            <td class="GroupRight" rowspan="2"></td> 
            <td class="GroupLeft" rowspan="2"></td> 
            <td class="GroupMiddle">  
                <span> 
                <runat="server" id="A1" href="#" class="GroupItem">  
                    <img src="/images/buttons/Today32.png" alt="Today" />Today  
                </a> 
                </span> 
                <img src="/images/contents-separator.png" alt="|" /> 
                <span> 
                <runat="server" id="A2" href="#" class="GroupItem">  
                    <img src="/images/buttons/BackADay32.png" alt="Back A Day" />Previous Day  
                </a> 
                </span> 
                <span> 
                <runat="server" id="A3" href="#" class="GroupItem">  
                    <img src="/images/buttons/ForwardADay32.png" alt="Next Day" />Next Day  
                </a> 
                </span> 
                <img src="/images/contents-separator.png" alt="|" /> 
                <span> 
                <runat="server" id="A4" href="#" class="GroupItem">  
                    <img src="/images/buttons/BackAWeek32.png" alt="Previous Week" />Previous Week  
                </a> 
                </span> 
                <span> 
                <runat="server" id="A5" href="#" class="GroupItem">  
                    <img src="/images/buttons/ForwardAWeek32.png" alt="Next Week" />Next Week  
                </a> 
                </span> 
            </td> 
            <td class="GroupRight" rowspan="2"></td> 
            <td class="GroupLeft" rowspan="2"></td> 
            <td class="GroupMiddle">  
                <span> 
                <runat="server" id="A6" href="#" class="GroupItem">  
                    <img src="/images/buttons/Refresh32.png" alt="Refresh" />Refresh  
                </a> 
                </span>      
                <img src="/images/contents-separator.png" alt="|" />          
                <span> 
                <runat="server" id="A7" href="#" class="GroupItem">  
                    <img src="/images/buttons/Print32.png" alt="Print" />Print  
                </a> 
                </span>      
            </td> 
            <td class="GroupRight" rowspan="2"></td> 
            <td class="GroupLeft" rowspan="2"></td> 
            <td class="GroupMiddle">  
                <span> 
                <runat="server" id="A8" href="/appointments/EditDetail.aspx" class="GroupItem">  
                    <img src="/images/buttons/AppointmentNew32.png" alt="New Appointment" />New Appointment  
                </a> 
                </span>      
            </td> 
            <td class="GroupRight" rowspan="2"></td> 
 
        </tr> 
        <tr> 
            <td class="GroupLabel">Views</td> 
            <td class="GroupLabel">Timeline</td> 
            <td class="GroupLabel">Detail</td> 
            <td class="GroupLabel">New</td> 
        </tr> 
    </table>      
 

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.
0
Missing User
answered on 16 Oct 2007, 08:13 AM
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
Tags
Ajax
Asked by
Rational Animal
Top achievements
Rank 1
Answers by
Rational Animal
Top achievements
Rank 1
plamen
Top achievements
Rank 1
Missing User
Share this question
or