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
    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:
        <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        <telerik:RadAjaxManager ID="RadAjaxManager1" runat="server">
                <telerik:AjaxSetting AjaxControlID="Button1">
                        <telerik:AjaxUpdatedControl ControlID="RadSplitter1" />
        <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 ID="RadPane2" runat="server" ContentUrl="http://www.google.com"></telerik:RadPane>

    Best wishes,
    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
Back to Top