I have two panels that update each other via the RadAjaxManager and RadAjaxManagerProxy. When doing an update one way, it works fine. When both panels update each other, a page reload occurs each time I click on a option button from one of the panels (instead of the expected Ajax behavior).
Here are my project details:
I have a main page (default.aspx) that has an RadAjaxScriptManager. The same page has an ascx control that gets loaded by default and is used to filter dates:
<telerik:RadPane ID="subnavPane" runat="server" Width="200">
<asp:Panel ID="panelFilter" runat="server">
<uc2:DateFilters ID="DateFilters1" runat="server" />
</asp:Panel>
</telerik:RadPane>
The DateFilters ascx control has option buttons that update another panel located on the main page. I set this up via the RadAjaxManagerProxy
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rbtnToday">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panelContent" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
The updated panel is (PanelContent) and is located on the main page:
<telerik:RadPane ID="contentPane" runat="server" Width="756" Scrolling="None">
<asp:Panel ID="panelContent" runat="server">
</asp:Panel>
<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" Height="75px" Width="75px" runat="server"
Transparency="0">
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Loading.gif" Style="margin-left: 0px;
margin-top: 140px;" BorderWidth="0px" AlternateText="Loading"></asp:Image>
</telerik:RadAjaxLoadingPanel>
</telerik:RadPane>
This by itself works fine and as expected. When the option button gets clicked from the DateFilter, my function gets called which dynamically loads a new ascx control into the panel i setup on the main page (panelContent). This was done just like the example on your site for dynamically loading ascx controls and by itself works great.
On the dynamically loaded control, i added a new button which in turn needs to update the date filter panel. I set this up like this;
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyLocal" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="LinkButton1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panelFilter" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
This seems to work ok when clicking on the new button I added, although now the option button from the date filter causes the whole page to reload each time I click on it.
Also, it seems to be enabling ajax updating on all the controls in the dynamically loaded ascx control, which doesn't make any sense to me since there is no ajax proxy creating these associations. All the examples I saw had functions like AjaxifySelf, which doesn't seem valid because it's already doing this automatically against my wishes. All the controls on the dynamically loaded user control are updating each other without page refreshes, which seems like a bug, but maybe I am missing somethning. Can i keep it from doing this? I'd rather create the associations manually to improve performance and get the finite control I need.
Can you tell me what I am doing wrong in these cases? Any help would be greatly appreciated.
Thanks,
Levi
Here are my project details:
I have a main page (default.aspx) that has an RadAjaxScriptManager. The same page has an ascx control that gets loaded by default and is used to filter dates:
<telerik:RadPane ID="subnavPane" runat="server" Width="200">
<asp:Panel ID="panelFilter" runat="server">
<uc2:DateFilters ID="DateFilters1" runat="server" />
</asp:Panel>
</telerik:RadPane>
The DateFilters ascx control has option buttons that update another panel located on the main page. I set this up via the RadAjaxManagerProxy
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxy1" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="rbtnToday">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panelContent" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
The updated panel is (PanelContent) and is located on the main page:
<telerik:RadPane ID="contentPane" runat="server" Width="756" Scrolling="None">
<asp:Panel ID="panelContent" runat="server">
</asp:Panel>
<telerik:RadAjaxLoadingPanel ID="LoadingPanel1" Height="75px" Width="75px" runat="server"
Transparency="0">
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/Loading.gif" Style="margin-left: 0px;
margin-top: 140px;" BorderWidth="0px" AlternateText="Loading"></asp:Image>
</telerik:RadAjaxLoadingPanel>
</telerik:RadPane>
This by itself works fine and as expected. When the option button gets clicked from the DateFilter, my function gets called which dynamically loads a new ascx control into the panel i setup on the main page (panelContent). This was done just like the example on your site for dynamically loading ascx controls and by itself works great.
On the dynamically loaded control, i added a new button which in turn needs to update the date filter panel. I set this up like this;
<telerik:RadAjaxManagerProxy ID="RadAjaxManagerProxyLocal" runat="server">
<AjaxSettings>
<telerik:AjaxSetting AjaxControlID="LinkButton1">
<UpdatedControls>
<telerik:AjaxUpdatedControl ControlID="panelFilter" />
</UpdatedControls>
</telerik:AjaxSetting>
</AjaxSettings>
</telerik:RadAjaxManagerProxy>
This seems to work ok when clicking on the new button I added, although now the option button from the date filter causes the whole page to reload each time I click on it.
Also, it seems to be enabling ajax updating on all the controls in the dynamically loaded ascx control, which doesn't make any sense to me since there is no ajax proxy creating these associations. All the examples I saw had functions like AjaxifySelf, which doesn't seem valid because it's already doing this automatically against my wishes. All the controls on the dynamically loaded user control are updating each other without page refreshes, which seems like a bug, but maybe I am missing somethning. Can i keep it from doing this? I'd rather create the associations manually to improve performance and get the finite control I need.
Can you tell me what I am doing wrong in these cases? Any help would be greatly appreciated.
Thanks,
Levi