Qlik Community

New to Qlik Sense

Discussion board where members can get started with Qlik Sense.

Not applicable

.NET SDK SuspendLayout/ResumeLayout

Hi,

I've seen a few code samples with SuspendLayout and ResumeLayout method calls...

what are they for?

Thanks,

Shane.

Tags (2)
1 Solution

Accepted Solutions
prabhuappu
Contributor II

Re: .NET SDK SuspendLayout/ResumeLayout

Hi Shane,

https://help.qlik.com/sense/en-us/developer/#../Subsystems/NetSdk/Content/HowTos/NetSdk_WorkWith_Gen...

When working with generic objects in a shared session environment, changes in one client propagate to all other clients as well. This invalidates all objects and triggers automatic fetching of the properties and layout the next time they are being accessed.

To synchronize this with your code, you can delay a possible invalidation until after you have made your changes to the generic object.

There are two ways to do this:

  • With a using block
  • Explicitly suspending and resuming layout

I hope this clarifies your doubt....

Regards,

Prabhu Appu

2 Replies
prabhuappu
Contributor II

Re: .NET SDK SuspendLayout/ResumeLayout

Hi Shane,

https://help.qlik.com/sense/en-us/developer/#../Subsystems/NetSdk/Content/HowTos/NetSdk_WorkWith_Gen...

When working with generic objects in a shared session environment, changes in one client propagate to all other clients as well. This invalidates all objects and triggers automatic fetching of the properties and layout the next time they are being accessed.

To synchronize this with your code, you can delay a possible invalidation until after you have made your changes to the generic object.

There are two ways to do this:

  • With a using block
  • Explicitly suspending and resuming layout

I hope this clarifies your doubt....

Regards,

Prabhu Appu

Not applicable

Re: .NET SDK SuspendLayout/ResumeLayout

Hi Prabhu,

thanks for that

Shane.

Community Browser