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

Unexpected Behavior

1 Answer 85 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
J. E.
Top achievements
Rank 1
J. E. asked on 20 Jun 2011, 04:14 PM
Hi all,

I have a question regarding some unexpected behavior that I am experiencing. I don't know if its an issue with the control or an error with the way of have used the control. So I am hoping someone can point me in the right direction. I have a RadTabStrip control that has a RadMultiPage control associated with it. The RadMultiPage control's content URL is set dynamically every time the user changes tabs. This is handled on the TabClick event of the RadTabStrip with the event calling a private method, ChangeTab(), to load the page.

One of the tabs, calls a page that returns a list of users. If a user is selected, the entire page is redirected to a user management screen. We provide a link on that page that allows the web user to return to the list, by storing the tab id as part of the query string. If the user clicks on the link, we get the tab id and change the TabStrip.SelectedIndex to the tab and call the private method, ChangeTab(), to reload the content url for that tab.

I would expect that doing this would allow us to reload the list the user was looking at. This doesn't happen. Instead the tab is selected, but the content is blank. I set a break point in the source's PageLoad event and it isn't called. I have tried the other tabs as well and the same thing happens. I know the method is working because it loads the correct content when the user changes tabs manually. It just doesn't seem to work in the page_load.

Any ideas would be greatly appreciated.

Thanks,
JE

1 Answer, 1 is accepted

Sort by
0
J. E.
Top achievements
Rank 1
answered on 20 Jun 2011, 08:17 PM
Found the solution and am posting it in case someone has a similar problem. It seems like after setting the new pageView for the tab and its contentUrl, you need to also set the selected property to True:

MultiPageView1.PageViews[newTabIndex].Selected = true;

Tags
TabStrip
Asked by
J. E.
Top achievements
Rank 1
Answers by
J. E.
Top achievements
Rank 1
Share this question
or