SaaS CMS has officially launched! Learn more now.

Prevent tab from load


When a plugin is made to the edit-area in EPiServer the usercontrol is loaded everytime a user goes to edit the page. Is there any way to prevent the tabs usercontrol to load until the actual tab is clicked?

The plugin/usercontrol I got in one of the tabs does a lot of data searching and it would be great if the control isn't loaded until needed...

Regards, Andreas Ek, Internetfabriken.

Jan 07, 2009 9:20
This could be useful for pagetypes that have many xhtml-editors as well. The loadtime for editing a page gets frustrating long if there are 20+ editors. (I know - there might not be a good idea to have so many editors in the first place, but a delayed load of tabs could be useful anyhow)
Jan 07, 2009 12:17

There is a querystring in the page named "SelectedEditPanelTab". Perhaps it could be used somehow?

Jan 07, 2009 14:27
Isnt that only for specifying the tab that should be selected on load?
Jan 07, 2009 14:35

This would have to be done in the plugins themselves, for example by moving all heavy databinding to the PreRender event insetad of doing it in Init().

To alter the behavior of the standard tabs, like [Edit], it would require some hacking which would be Unsupported and Not Recommended and would possibly break when future releases are applied.



Jan 09, 2009 13:46

Placing databinding in prerender or not, still the plugin is loaded with heavy data...


( Hacking EPiServer? Don't drink and drive! )

Jan 12, 2009 0:20

When you click a tab a post back occurs and the page is rendered again.

If your user control is visible (=tab selected), PreRender will be called otherwise not.

So, if you tweak you code a little so it does not do anything in Init, Load and other events that is alwaysed called it should not cost so much in performance...

Jan 12, 2009 11:59
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.