Get corresponding Tab ID from user control

5 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 11 May 2010 Link to this post

    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
  2. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 13 May 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 14 May 2010 Link to this post

    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.
  5. Andy Green
    Andy Green avatar
    120 posts
    Member since:
    Jul 2009

    Posted 14 May 2010 Link to this post

    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
  6. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 17 May 2010 Link to this post

    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.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017