Updating ContentURL of RadPane from Serverside

2 posts, 0 answers
  1. Tom Ray
    Tom Ray avatar
    11 posts
    Member since:
    Oct 2009

    Posted 16 Aug 2010 Link to this post

    I have a button inside another radpane that is calling server side onclick code to change the contenturl of another url.  When I click the button the radpane getting changed does not get updated with the new webpage.   The button is inside a ajaxpane.  Any help to get the contenturl to work is appreciated.
  2. Tsvetie
    Admin
    Tsvetie avatar
    1517 posts

    Posted 19 Aug 2010 Link to this post

    Hello Tom Ray,
    In case you have ajaxified the button that changes the ContentUrl property of the RadPane control, you need to make sure that this control (RadPane) is actually updated during the AJAX request. Otherwise, the changes you make to that control will not take effect.

    For example, in case you are using a RadAjaxManager control, you have to use the following AjaxSetting:
    <body>
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
            <AjaxSettings>
                <telerik:AjaxSetting AjaxControlID="Button1">
                    <UpdatedControls>
                        <telerik:AjaxUpdatedControl ControlID="RadSplitter1" />
                    </UpdatedControls>
                </telerik:AjaxSetting>
            </AjaxSettings>
        </telerik:RadAjaxManager>
        <telerik:RadSplitter ID="RadSplitter1" runat="server">
            <telerik:RadPane ID="RadPane1" runat="server">
                <asp:Button ID="Button1" runat="server" Text="Change url" OnClick="Button1_Click" />
            </telerik:RadPane>
            <telerik:RadPane ID="RadPane2" runat="server" ContentUrl="http://www.google.com"></telerik:RadPane>
        </telerik:RadSplitter>
        </form>
    </body>


    Best wishes,
    Tsvetie
    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top