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

Calendar popup no longer working when adding RadAjaxPanel to master page control

3 Answers 78 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Colin
Top achievements
Rank 1
Colin asked on 07 Apr 2011, 11:15 AM
I have control as part of a master page where I have added a RadAjaxPanel to the toolbar (TopNavigationControl.ascx.cs) as follows:

<telerik:RadAjaxPanel ID="panelAjaxPersonShortcut" runat="server" EnableAJAX="True"><br><div id="topNavigationControl-contentDiv"><br>    <div id="textSize"><br>        <asp:LinkButton ToolTip="Sign out" CausesValidation="false" ID="signOut" runat="server"<br>            OnClick="signOut_Click">Sign Out</asp:LinkButton><br>    </div><br>    <asp:LinkButton ToolTip="Home" CausesValidation="false" ID="home" runat="server"<br>        OnClick="home_Click">Home</asp:LinkButton><br>    <asp:LinkButton ToolTip="Help" CausesValidation="false" ID="help" runat="server"<br>        OnClick="help_Click">Help</asp:LinkButton><br>    <ps:PersonShortcut ID="ucPersonShortcut " runat="server" />        <br></div><br></telerik:RadAjaxPanel>

The control ucPersonShortcut was added late in the project and was ajax-ified to prevent postback problems with existing pages when the user clicks buttons on this shortcut that stay on the same page.  My problem is that existing pages that contain other Telerik controls seems to be adversely affected  e.g. a telerik RadDatePicker no longer shows the calendar when the popup button is clicked...

   <telerik:RadDatePicker ID="DateBirthDate" runat="server" CssClass="input" MinDate="1850-01-01"><br>                        <Calendar UseColumnHeadersAsSelectors="False" UseRowHeadersAsSelectors="False" ViewSelectorText="x"><br>                        </Calendar><br>                        <DatePopupButton HoverImageUrl="" ImageUrl="" /><br>                        <DateInput DateFormat="dd/MM/yyyy" DisplayDateFormat="dd/MM/yyyy" CssClass="input"><br>                        </DateInput><br>                        <ClientEvents OnPopupOpening="PopupOpening" OnPopupClosing="PopupClosing" /><br>                    </telerik:RadDatePicker>

Interestingly, the page where this calendar resides is in a user control 'ucManagePerson' and this page has a RadAjaxManagerProxy on it..not sure if this has anything to do with it.

<asp:Content id="cntMain" contentplaceholderid="mainContent" runat="server"><br>    <asp:Label runat="server" id="CaptionNumberPersons" class="caption"/><br>    <telerik:RadAjaxManagerProxy ID="ajaxManagerProxy" runat="server"><br>        <AjaxSettings><br>            <telerik:AjaxSetting AjaxControlID="ucViewPersons"><br>                <UpdatedControls><br>                    <telerik:AjaxUpdatedControl ControlID="ucManagePerson" /><br>                </UpdatedControls><br>            </telerik:AjaxSetting><br>        </AjaxSettings><br>    </telerik:RadAjaxManagerProxy><br>        <br>        <vp:ViewPersons ID="ucViewPersons" runat="server" /><br>        <mp:ManagePerson ID="ucManagePerson" runat="server" /><br></asp:Content><br>


Basically if I take the RadAjaxPanel off the person shortcut the calendar works, I put it back on, it does not pop up. Any ideas??

Retards
Colin

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 07 Apr 2011, 11:59 AM
Hello Colin,

RadAjax no longer allows more than one RadAjaxManager on the page. Instead, in a complex scenario like WebUserControls  or Master/ContentPages, one should place RadAjaxManager instance on the main/master page and add a proxy control to the user control/content page.

Take a look at the following help article for more an this.
RadAjax and MasterPage
RadAjaxManagerProxy

Thanks,
Shinu.
0
Colin
Top achievements
Rank 1
answered on 07 Apr 2011, 12:03 PM
Hi, I am not using a RadAjaxManager, only a RadAjaxPanel.
0
Maria Ilieva
Telerik team
answered on 08 Apr 2011, 03:55 PM
Hi Colin,

The described behavior is rather strange and we are not aware of any such reported issues. Could you please open a regular support ticket and send us runnable version of your application. Thus we will be able to debug it locally and advise you further.

Regards,
Maria Ilieva
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
Colin
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Colin
Top achievements
Rank 1
Maria Ilieva
Telerik team
Share this question
or