# Alter dock after navigate to page

**URL:** <https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [August 4, 2023, 1:48pm UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441 "2023-08-04T13:48:15Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [August 4, 2023, 1:48pm UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/1 "2023-08-04T13:48:15Z")

</div>

Hi,

I'm using the alter dock function to create and expandable side menu.  
When navigate to a new page it seems that the dock is reloaded and take back the configuration set in the designer.

Is there a way to avoid that?  
Regards  
Arnaud

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [August 4, 2023, 2:33pm UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/2 "2023-08-04T14:33:21Z")

</div>

No, the `alterDock` function is intended to alter an existing Docked View from the configuration of the existing page. When you navigate to a new page, you're loading an entirely different Docked View configuration which will load as it is configured in the Designer.

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [August 4, 2023, 2:43pm UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/3 "2023-08-04T14:43:23Z")

</div>

@Arnaud_Declerck  
be careful, alterdock is limited to only one dock...Yan can't alter multiple docks:

> [@\[IGN-6743\] system.perspective.alterDock can only resize one dock at a time?](https://forum.inductiveautomation.com/t/ign-6743-system-perspective-alterdock-can-only-resize-one-dock-at-a-time/65306/8):
>
> Ignition 8.1.21 I have the same issue with alter dock when I try to alter viewParams of multiple docks

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [August 4, 2023, 2:55pm UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/4 "2023-08-04T14:55:00Z")

</div>

Even if the docked view is shared ?  
Why when we navigate to a new page the startup event script of the docked view is not executed?.  
Is it just reloading the dock config and not the view?

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [August 4, 2023, 2:55pm UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/5 "2023-08-04T14:55:38Z")

</div>

i saw your post already but i'm only using one dock.

Thx for the info

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [August 4, 2023, 2:58pm UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/6 "2023-08-04T14:58:10Z")

</div>

> [@Arnaud\_Declerck](#):
>
> Is it just reloading the dock config and not the view?

That's my understanding of how it works, yes. Every Page has its own Docked View Configuration which replaces any existing configuration as the new Page loads. The Views which are _present_ are not re-loaded, though any differences in the params of the Docked View based on the configuration would of course result in bindings being re-evaluated.

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [August 4, 2023, 3:22pm UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/7 "2023-08-04T15:22:39Z")

</div>

How would you suggest to do this kind of navigation menu with expanding possibility?  
Not use docked view ?

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [September 19, 2025, 11:52am UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/8 "2025-09-19T11:52:38Z")

</div>

Good afternoon @Arnaud_Declerck, I have the same your problem, have you been able to solve it?

---

<div class="post-metadata">

**Author:** ![Arnaud\_Declerck](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/arnaud_declerck/32/44872_2.png) [@Arnaud\_Declerck](https://forum.inductiveautomation.com/u/Arnaud_Declerck)\
**Post date:** [September 19, 2025, 2:35pm UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/9 "2025-09-19T14:35:49Z")

</div>

hi @Aiasa21 ,

Take a look on that post. My goals was to alter the dock to change the width of it. [Advanced Stylesheet: Class in class - #13 by victordcq](https://forum.inductiveautomation.com/t/advanced-stylesheet-class-in-class/77505/13)

Regards

---

<div class="post-metadata">

**Author:** ![Aiasa21](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@Aiasa21](https://forum.inductiveautomation.com/u/Aiasa21)\
**Post date:** [September 21, 2025, 8:06am UTC](https://forum.inductiveautomation.com/t/alter-dock-after-navigate-to-page/77441/10 "2025-09-21T08:06:06Z")

</div>

@Arnaud_Declerck this is exactly what I need, it works perfectly!

Thanks and have a nice day
