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

Why does this demo using Response.ApplyAppPathModifier(Request.Url.PathAndQuery)?

8 Answers 166 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
louis chan
Top achievements
Rank 1
Iron
louis chan asked on 23 Apr 2010, 05:59 AM
Hi,
I am considering which approach should I use to make a menu navigation bar - sitemapdatasource or using the query string.
My menu bar is dynamically generating menu base on row data in my database table.
This demo is using Response.ApplyAppPathModifier(Request.Url.PathAndQuery) but I have seen there is an action to change those tabs.

Dim tab As RadTab = RadTabStrip1.FindTabByUrl(urlWithSessionID)
If Not IsNothing(tab) Then
   tab.SelectParents()
   tab.PageView.Selected = True
End If


so why do we need Response.ApplyAppPathModifier(Request.Url.PathAndQuery) here? I hope this will also help me develop my dynamically generating menu bar. Thx!

8 Answers, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 23 Apr 2010, 02:52 PM
Hi louis chan,

We used that method to overcome a problem when you are in a cookieless mode and a session id is added in the URL.

All the best,
Veskoni
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.
0
louis chan
Top achievements
Rank 1
Iron
answered on 24 Apr 2010, 04:39 AM
Hi Veskoni ,
Thx for the reply! Does this sample mean if I go to another page but the the master page contains this tabstrip, then the tab will be selected?
0
Veselin Vasilev
Telerik team
answered on 26 Apr 2010, 11:55 AM
Hello louis chan,

In Page_Load of the master page you just need to find the selected tab and then select the parents. The tricky part is to find the correct tab - we use FindTabByUrl.

Regards,
Veskoni
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.
0
louis chan
Top achievements
Rank 1
Iron
answered on 26 Apr 2010, 01:00 PM
Hi Veskoni ,
Yup, but one thing that is needed to be concerned. Let's take telerik as an example. The community and it's post is under "Developer Productivity", how could u determine this tab should be selected?

Best Regards.
0
Veselin Vasilev
Telerik team
answered on 29 Apr 2010, 12:34 PM
Hello louis chan,

Didn't the FindTabByUrl help? You find the tab by the url of the current request and select it.
That is all. Am I missing something?

All the best,
Veskoni
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.
0
louis chan
Top achievements
Rank 1
Iron
answered on 04 May 2010, 08:15 AM
Hi Veskoni,
May be I misunderstand yr meaning. Let me introduce my situration.
> Home (URL=http://abc.com)
  >Forum (URL=http://abc.com/forum/)
    >Top 5 Topics (URL=http://abc.com/topic5/)

Top 5 Topics is a page and under forum tab. If I directly go to Top 5 Topics, Forum tab should be selected. As a result http://abc.com/topic5/ is not equal to http://abc.com/forum/ . How could I select Forum in this case if user goes to top 5 topics?

Thx!
0
louis chan
Top achievements
Rank 1
Iron
answered on 07 May 2010, 08:28 AM
Hey guys! I want to draw u guys attention because I want to know how to implement my situration in common ways. Thx!
0
Accepted
Yana
Telerik team
answered on 07 May 2010, 09:41 AM
Hi Louis Chan,

We don't know exactly how the connection between "Top 5 Topics" page and its parent "Forum" is implemented in your case, may be there is some way to find the parent of "Top 5 Topics" when you know that it's clicked. Can you clarify the situation please?

Best regards,
Yana
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
TabStrip
Asked by
louis chan
Top achievements
Rank 1
Iron
Answers by
Veselin Vasilev
Telerik team
louis chan
Top achievements
Rank 1
Iron
Yana
Telerik team
Share this question
or