how can I Redirect AWAY from a RadMultiPage with RadTabStrip to a different aspx page ?

0 Answers 64 Views
TabStrip
RRE
Top achievements
Rank 2
Iron
RRE asked on 14 Apr 2023, 09:39 AM

I have an ASP.Ajax tabstrip with the firs tab linked to another page, all other tabs with html code on multipage.

I'm not able to redirect on the first tab directly to other "Main.aspx" page.

What I'm making wrong?

    <telerik:RadTabStrip RenderMode="Lightweight" ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        SelectedIndex="1">
        <Tabs>
            <telerik:RadTab Text="People List" runat="server" NavidateUrl="Main.aspx" Target="_blank">
            </telerik:RadTab>
            <telerik:RadTab Text="Registry " runat="server" Selected="True">
            </telerik:RadTab>
            <telerik:RadTab Text="Notes" runat="server">
            </telerik:RadTab>
            <telerik:RadTab Text="Recipes" runat="server">
            </telerik:RadTab>
            <telerik:RadTab Text="Files" runat="server">
            </telerik:RadTab>
        </Tabs>
    </telerik:RadTabStrip>
    <br />
    <telerik:RadMultiPage runat="server" ID="RadMultiPage1" SelectedIndex="1">
        <telerik:RadPageView runat="server" ID="RadPagePeopleList"></telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="RadPageRegistry">
            <div>
                <div class="container-fluid">
				...
                </div>
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView runat="server" ID="RadPageNotes">
            <div>
                <div class="container-fluid">
				...
                </div>
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageRecipes" runat="server">
            <div>
                <div class="container-fluid">
				...
                </div>
            </div>
        </telerik:RadPageView>
        <telerik:RadPageView ID="RadPageFiles" runat="server">
            <div>
                <div class="container-fluid">
				...
                </div>
            </div>
        </telerik:RadPageView>
    </telerik:RadMultiPage>

 

Thanks

Renato

 
RRE
Top achievements
Rank 2
Iron
commented on 17 Apr 2023, 08:04 AM

Dear Snaptube,

your post is void!

Renato

RRE
Top achievements
Rank 2
Iron
commented on 17 Apr 2023, 11:07 AM

In in any case I found a simple solution, I report it for those interested:

add an evento on click and redirect form it

on page side:

 <telerik:RadTabStrip RenderMode="Lightweight" ID="RadTabStrip1" runat="server" MultiPageID="RadMultiPage1"
        SelectedIndex="1"  OnTabClick="RadTabStrip1_TabClick">

on server side:


   protected void RadTabStrip1_TabClick(object sender, RadTabStripEventArgs e)
    {
        Telerik.Web.UI.RadTab TabClicked = e.Tab;

        if(TabClicked.Index==0)
        {
                Response.Redirect("~/Main.aspx");
        }
    }

Renato

Rumen
Telerik team
commented on 18 Apr 2023, 02:30 PM | edited

Hi Renato,

Thank you for sharing your solution with the community!

You can also try the NavigateUrl solution from the following demo: Website Navigation

On a side note, the reply sent by the other customer was spam and I removed it from the communication.

No answers yet. Maybe you can help?

Tags
TabStrip
Asked by
RRE
Top achievements
Rank 2
Iron
Share this question
or