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

[Solved] Partial-page updates

1 Answer 172 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Ed
Top achievements
Rank 1
Ed asked on 16 Jun 2008, 10:10 PM
Hi there,

I am trying to reproduce the partial update functionality shown on the Telerik examples site (http://www.telerik.com/demos/aspnet/prometheus/Controls/Examples/Default/DefaultCS.aspx) where the middle pane is refreshed on clicking an item in the left-hand nav without causing the whole page to flicker.  Is there a standard way to do this?  I have been experimenting with the following code in an ASPX file (the RadAjaxManager itself is in a master page):

    <telerik:RadAjaxManagerProxy runat="server">
        <AjaxSettings>
            <telerik:AjaxSetting AjaxControlID="pnlTemp">
                <UpdatedControls>
                    <telerik:AjaxUpdatedControl ControlID="btnTemp"></telerik:AjaxUpdatedControl>
                </UpdatedControls>
            </telerik:AjaxSetting>
        </AjaxSettings>
    </telerik:RadAjaxManagerProxy>

    <asp:Label ID="lblTemp" runat="server" Text="nothing"></asp:Label>
    <asp:Panel ID="pnlTemp" runat="server">
        <asp:Button ID="btnTemp" runat="server" Text="Button" />
        <asp:Button ID="btnTemp2" runat="server" Text="Button2" />
    </asp:Panel>  

If I specify the whole panel as the Ajax control, this doesn't work (i.e., clicking a button causes the whole page to be refreshed), whereas if I nominate one of the buttons directly, it does work.  Does this indicate anything?  Ultimately, I want to have a LH nav consisting of a RadPanelBar, with the "leaf" items (i.e., those with no children) triggering partial-page post-backs that refresh the centre pane but leave the top and LH navs unchanged (so no flicker).

All advice gratefully received,

Ed Graham

1 Answer, 1 is accepted

Sort by
0
Ed
Top achievements
Rank 1
answered on 17 Jun 2008, 08:30 PM
My issue has been addressed by this thread:

http://www.telerik.com/community/forums/thread/b311D-bedkea.aspx
Tags
Ajax
Asked by
Ed
Top achievements
Rank 1
Answers by
Ed
Top achievements
Rank 1
Share this question
or