DockManager flickers when restoring state after navigation

1 Answer 9 Views
DockManager
Bohdan
Top achievements
Rank 2
Iron
Bohdan asked on 17 Jun 2025, 11:36 AM | edited on 17 Jun 2025, 01:06 PM
Hi,

I need some help with the DockManager. Is it currently possible to prevent the flickering/loading effect when navigating to a page and restoring the DockManagerState from local storage? Once I pin delegate(with setting state inside directly to args or with SetState method) to OnStateInit (because I want to control Layout state and reapply it when navigating) -> it starts flickering loading. Once I don't pin to OnStateInit(with the same delegate mech I discribed earlier) -> everything works fine, but state can't be saved and recreated.

The behavior looks like a short reload or UI flicker when the state is reapplied.

I followed the setup exactly as shown in the official Demo, but seems like it is working nice only after DockManager is fully rendered and then changing it's state.

Thanks in advance!

1 Answer, 1 is accepted

Sort by
1
Accepted
Dimo
Telerik team
answered on 18 Jun 2025, 09:13 AM

Hello Bohdan,

By design, the DockManager shows a LoaderContainer automatically when it has an OnStateInit event handler. You can disable this loader container with a bit of custom CSS.

    .k-dock-manager > .k-loader-container {
        display: none;
    }

Note that after making this change, users with slow internet connection may start noticing how the DockManager rearranges its panes, according to the restored state.

Regards,
Dimo
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Bohdan
Top achievements
Rank 2
Iron
commented on 01 Jul 2025, 10:52 AM | edited

Hi Dimo,

Thanks a lot for your response!

For those, who may have the same issue: after some debugging, I noticed that the DockManager component was re-initializing every time I navigated between pages. That turned out to be the root cause of the issue I was facing.

Thanks again for your support and work on the Telerik components!

Best regards,  
Bohdan

Tags
DockManager
Asked by
Bohdan
Top achievements
Rank 2
Iron
Answers by
Dimo
Telerik team
Share this question
or