Jump to content

PageControl with partial rendering


Guinther
 Share

Recommended Posts

Hi

We have a really big form with a PageControl and many tabsheets (about 1k controls), this process is taking some about 15 to 20 seconds to complete rendering

I'd like to implement a ondemand creation / load by demand to decrease rendering time

After a debug session, we discovery most time is used on rendering process, to generate the HTML code for each control, not on the its creation on server as a Delphi component coming from the DFM

Base on documentation and demos, we know that one approach is to move the tab sheets to frames, and to create this frames on demand

The problem is that our controls on each frame are very coupled and dependents, so we got many access violations

Then we try to symple set the tabs to visible = false, to disable unigui to render this controls

The problem is that unigui render the control even it's visible as false on server, sending the complete HTML code to browser with the display = none

So, some idea how to implement this on demand rendering with less impact in source code (frame on demand base approach)?

In other words, I'd like to say no unigui to dont render some sheets or set of controls

Thanks

Link to comment
Share on other sites

  • Administrators

Hi,
 

Quote

 

Base on documentation and demos, we know that one approach is to move the tab sheets to frames, and to create this frames on demand

The problem is that our controls on each frame are very coupled and dependents, so we got many access violations

 

Have you reviewed our "PageControl - BeforeActivate" demo project?

It is our solution to such performance issues. However, you've said that your frames can not be created independently. I think you need to address this problem and try to remove inter-dependency between frames and components and/or carry such dependencies to a DataModule.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...