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

Updating ContentURL of RadPane from Serverside

1 Answer 97 Views
Splitter
This is a migrated thread and some comments may be shown as answers.
Tom Ray
Top achievements
Rank 1
Tom Ray asked on 16 Aug 2010, 01:42 PM
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.

1 Answer, 1 is accepted

Sort by
0
Tsvetie
Telerik team
answered on 19 Aug 2010, 12:14 PM
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
Tags
Splitter
Asked by
Tom Ray
Top achievements
Rank 1
Answers by
Tsvetie
Telerik team
Share this question
or