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

Get corresponding Tab ID from user control

4 Answers 36 Views
TabStrip
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 1
Andy Green asked on 11 May 2010, 01:47 PM
Hi

I'm implementing the TabStrip with RadMultipage. Each of the user controls has a grid which is refreshed with a timer. What I want to be able to do is turn off the relavent timers when I change the tab.

I hope this makes sense, I suppose the minimum I need is how to identify which tab was clicked from the user control (ascx page)

Andy

4 Answers, 1 is accepted

Sort by
0
Andy Green
Top achievements
Rank 1
answered on 13 May 2010, 03:46 PM
Hi

Is anyone able to answer this please.

Is there a way to use the tabes to load pages rather than load usercontrols as now I'm running into postback problems.

As I'm unable to hide some of the code in If not page.ispostbacks

Andy
0
Yana
Telerik team
answered on 14 May 2010, 12:21 PM
Hello Andy,

You can add iframes inside the pageviews in order to load pages, not user controls.
Regarding your first question,  you can access the tabstrip from the user controls like this:

RadTabStrip tabstrip = (RadTabStrip) Page.FindControl("RadTabStrip1");

and then find its SelectedTab.

Hope this helps.

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.
0
Andy Green
Top achievements
Rank 1
answered on 14 May 2010, 01:47 PM
Thanks -
Do you have examples of using iframes from code behind, I need to implement security and it would be good for me if I could just change this code.

Andy
0
Yana
Telerik team
answered on 17 May 2010, 02:18 PM
Hello Andy,

We dont' have such an example at hand, but it's simple, just place the iframes inside the  pageviews and set their src property to the needed url. Please try it and if you have any difficulties, contact us again.

Best wishes,
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
Andy Green
Top achievements
Rank 1
Answers by
Andy Green
Top achievements
Rank 1
Yana
Telerik team
Share this question
or