Onload called every time the active document is changed

5 posts, 0 answers
  1. theo
    theo avatar
    3 posts
    Member since:
    Jun 2009

    Posted 28 Mar 2011 Link to this post

    Hi Guys,

    I was wondering if there was any way to prevent calling the onload event every time the active document/tab in a DocumentHost in the DockPanel was changed. Basically preserving the control exactly as it is except that it's not in view when a different tab is selected.

    The reason being we've got a lot of existing code on a lot of pages where the onload is used for certain functions like populating the cache, instantiating a domaincontext etc.

    Any help/info would be greatly appreciated.
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 31 Mar 2011 Link to this post

    Hi Theo,

    Please refer to this forum post for more detailed explanation how the RadDocking control is working.

    Please let us know if you have further questions.

    Kind regards,
    Konstantina
    the Telerik team
  3. DevCraft banner
  4. theo
    theo avatar
    3 posts
    Member since:
    Jun 2009

    Posted 31 Mar 2011 Link to this post

    Hi Konstantina,

    So the short and the long of it is no? There is no other control that will give me a similar result without loading/unloading it from the visual tree?

    Kind Regards

    Theo
  5. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 06 Apr 2011 Link to this post

    Hello Theo,

    Unfortunately, there is no work around for this. This is how the Docking control is implemented and this cannot be changed. The other suitable control which I can think of is the TabControl, but I am afraid it works the same way.

    All the best,
    Konstantina
    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
  6. theo
    theo avatar
    3 posts
    Member since:
    Jun 2009

    Posted 07 Apr 2011 Link to this post

    Thanks, was hoping for better news but will try and find a way around it.

    P.S. It's still an awesome control :-)

    Kind Regards
    Theo Bohnen
Back to Top
DevCraft banner