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

Change ContentURL on OnClientTabSelecting

2 Answers 173 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
Iron
Iron
Veteran
David asked on 05 Sep 2018, 02:47 PM

I have my RadPageView setup with ContentURL, but on come conditions i need to redirect to different URL.

Nothing i tried works.

Help please

2 Answers, 1 is accepted

Sort by
0
Peter Milchev
Telerik team
answered on 06 Sep 2018, 11:30 AM
Hello David,

Using the set_contentUrl("newUrl") of the page view changes the ContentURL and reloads it, similarly to the scenario in your ticket with ID: 1165958

<telerik:RadCodeBlock runat="server">
    <script>
        function OnClientClicked(sender, args) {
            var pageview = $find("<%= RadMultiPage1.ClientID %>").findPageViewByID("RadPageView1");
            //change the content pageview
        }
    </script>
</telerik:RadCodeBlock>

<telerik:RadButton runat="server" ID="RadButton1" Text="Go to PageView documentation" OnClientClicked="OnClientClicked" AutoPostBack="false" />
<telerik:RadTabStrip runat="server" ID="RadTabStrip1" MultiPageID="RadMultiPage1">
    <Tabs>
        <telerik:RadTab Text="Tab 1"></telerik:RadTab>
    </Tabs>
</telerik:RadTabStrip>
<telerik:RadMultiPage runat="server" ID="RadMultiPage1" Height="800px" SelectedIndex="0">
    </telerik:RadPageView>
</telerik:RadMultiPage>

Regards,
Peter Milchev
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
David
Top achievements
Rank 1
Iron
Iron
Veteran
answered on 06 Sep 2018, 08:17 PM
Thank you!
Tags
TabStrip
Asked by
David
Top achievements
Rank 1
Iron
Iron
Veteran
Answers by
Peter Milchev
Telerik team
David
Top achievements
Rank 1
Iron
Iron
Veteran
Share this question
or