ricardolb Posted November 14, 2016 Posted November 14, 2016 Hi there, don't know if this is the right place, I have a form with almost 400 visual components, when I try to open that form on the browser with a simple show, it takes almost 6 seconds to open, anyone had or has this same problem? Any tips? Quote
Administrators Farshad Mohajeri Posted November 14, 2016 Administrators Posted November 14, 2016 Hi, Well, your question contains the answer. Having 400 controls on a form will highly reduce rendering performance. Quote
ricardolb Posted November 14, 2016 Author Posted November 14, 2016 I know it's a lot, i'm using a pagecontrol, is there a way to load tabs on demand? I see that there is the deferredRender option, which should do this, but it's not working or i'm not using it right.. does deferredRender work? Quote
wprins Posted November 14, 2016 Posted November 14, 2016 I know it's a lot, i'm using a pagecontrol, is there a way to load tabs on demand? I see that there is the deferredRender option, which should do this, but it's not working or i'm not using it right.. does deferredRender work? Really, you need to rethink the design of your interface/UI. Decompose into frames and/or dynamically create as needed I think. You can probably use an approach similar to that used in the Demo "mdemo" application. Quote
Administrators Farshad Mohajeri Posted November 14, 2016 Administrators Posted November 14, 2016 I know it's a lot, i'm using a pagecontrol, is there a way to load tabs on demand? It is in our to do list. Quote
Ron Posted November 15, 2016 Posted November 15, 2016 Is it the creation of the form, or the viewing of the form that takes 6 secs? If you set FreeOnClose to false, open it, close it and open it again, does it still take 6 secs? If you can define the form as a free form, and somehow create it in the background as the app loads, and then just show it when needed, maybe that helps. Quote
ricardolb Posted November 16, 2016 Author Posted November 16, 2016 Is it the creation of the form, or the viewing of the form that takes 6 secs? If you set FreeOnClose to false, open it, close it and open it again, does it still take 6 secs? If you can define the form as a free form, and somehow create it in the background as the app loads, and then just show it when needed, maybe that helps. I tested it now, and if I disable the FreeOnClose, the second time I open the form it opens really fast, so it's the creation of the form that it's taking 6 secs. Thanks for the tips, I'll see what I can do, thank you all. Quote
Ron Posted November 18, 2016 Posted November 18, 2016 Well, if it's the creation of the form, then is it only the creation of visual elements, or is it also the loading of data from db taking time? If you have data-aware components, notice that it will take some time to update them as the queries are opened. You may improve load time by not using data-aware components and also by using direct-sql query components that does not convert according to data type, i.e. that delivers only strings which you then manually convert if needed and then load into visual components Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.