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

Onload called every time the active document is changed

4 Answers 74 Views
Docking
This is a migrated thread and some comments may be shown as answers.
theo
Top achievements
Rank 1
theo asked on 28 Mar 2011, 09:02 AM
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.

4 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 31 Mar 2011, 10:42 AM
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
0
theo
Top achievements
Rank 1
answered on 31 Mar 2011, 02:42 PM
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
0
Konstantina
Telerik team
answered on 06 Apr 2011, 12:12 PM
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
0
theo
Top achievements
Rank 1
answered on 07 Apr 2011, 08:59 AM
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
Tags
Docking
Asked by
theo
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
theo
Top achievements
Rank 1
Share this question
or