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

LinkButton on seperate page to RadTabStrip + RadMultiPage

7 Answers 104 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 28 Jul 2008, 09:03 PM
Greetings,

I've perused the forums and can't find the answer to my question.

Say I have Default.aspx on which I've placed a LinkButton that I want to lead to Second.aspx, RadMultiPage1/PageView2?

Default.aspx does NOT have the RadTabStrip on it, only Second.aspx does.

Thanks for any advice.

Greg

7 Answers, 1 is accepted

Sort by
0
Paul
Telerik team
answered on 01 Aug 2008, 02:40 PM
Hi Greg,

You can easily achieve your goal by setting the SelectedIndex property of both tabstrip and multipage controls on Second.aspx to point to the desired tab/pageview. For example:

protected void Page_Load(object sender, EventArgs e)  
{  
    RadTabstrip1.SelectedIndex = 1;  
    RadMultipage.SelectedIndex = 1;  


Greetings,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris
Top achievements
Rank 1
answered on 19 Sep 2008, 06:05 PM
Sorry,
I'm just now getting back to this thread.  Your response doesn't really do what I need it to do.  Somehow, in the link button, I need to pass the radtabstrip, radmultipage and radpageview information with it so that the link will automatically just open up the pageview that I want it to. 

Second.aspx has numerous tabstrips, pageviews on it, so doing it on page_load can't really work for my situation.

Thanks,
Greg
0
Atanas Korchev
Telerik team
answered on 22 Sep 2008, 08:15 AM
Hi Greg,

I guess you could supply the ID of your tabstrip via query string parameter.

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris
Top achievements
Rank 1
answered on 24 Sep 2008, 04:45 PM
Could you provide an example.  I have no idea what the query string would look like to pass along in the URL.

Thanks,
Greg
0
Accepted
Atanas Korchev
Telerik team
answered on 24 Sep 2008, 04:49 PM
Hi Greg,

Here is an example:

<asp:HyperLink NavigateUrl="MyPage.aspx?TabStripID=RadTabStrip1"  />

Then in MyPage.aspx you can use this code:

RadTabStrip tabStrip = FindControl(Request["TabStripID"]);
tabStrip.SelectedIndex = 0;

Regards,
Albert
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Chris
Top achievements
Rank 1
answered on 24 Sep 2008, 04:51 PM
Wow!  Thank you.  That was exactly what I was looking for.  And thanks again for responding so fast.

Greg

PS:  I had heard that Telerik's tech support was good, which was a primary consideration in purchasing your controls.  Thanks so much for not disappointing me.  Your tech support has surpassed my expectations.
0
Chris
Top achievements
Rank 1
answered on 24 Sep 2008, 09:27 PM

Here is the solution that I've come up with if anybody cares.  I just create my own query parameter.  In this case it's "?newperson" that gets added to the end of my url.  So the link looks like this:  "~/person.aspx?newperson"

Then on the person.aspx page, I've got a main radtabstrip(radtabstrip1) for navigation and a sub radtabstrip(radtabstrip2) with a radmultipage(radmultipage1) and numerous pageviews.  The one that I want to go to when clicking the link with the query parameter is called "rpvNewPerson" with a selected index of 1.

Here is what I have in the page_load properties of person.aspx:

protected void Page_Load(object sender, EventArgs e)  
    {  
        foreach (string name in Request.QueryString)  
        {  
            if (Request.QueryString[name] == "newperson")  
            {  
                RadTabStrip2.SelectedIndex = 1;  
                RadMultiPage1.SelectedIndex = 1;  
            }  
        }  
             
    } 

Then of course, you can continue with else statements or even use a switch if you've got more than a few.

Hope this helps anyone else who runs into this issue.

Greg
Tags
TabStrip
Asked by
Chris
Top achievements
Rank 1
Answers by
Paul
Telerik team
Chris
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or