Why restore tabs in Page_load not Page_init?

2 posts, 0 answers
  1. Sean
    Sean avatar
    200 posts
    Member since:
    Nov 2010

    Posted 13 Mar 2011 Link to this post

    Hi All,

    I was just curious why examples show restoring tabs/page views during Page_Load and not Page_Initialization? 

    E.G. in this example. Yet, I thought it was best practice to reinitialize all your lost dynamically created controls in Page_Init?

  2. Kate
    Kate avatar
    1898 posts

    Posted 16 Mar 2011 Link to this post

    Hi Sean,

    In general you are right that the dynamically created controls should be placed in Page_Init. However, since a Tab or a PageView are not controls but just parts of different controls like RadTabStrip or RadMultiPageView it will be too early in the page lifecycle for them to load if you place them in the Page_Init.  

    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
Back to Top