ricardolb Posted November 14, 2016 Share 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? Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 14, 2016 Administrators Share Posted November 14, 2016 Hi, Well, your question contains the answer. Having 400 controls on a form will highly reduce rendering performance. Link to comment Share on other sites More sharing options...
ricardolb Posted November 14, 2016 Author Share 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? Link to comment Share on other sites More sharing options...
wprins Posted November 14, 2016 Share 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. Link to comment Share on other sites More sharing options...
Administrators Farshad Mohajeri Posted November 14, 2016 Administrators Share 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. Link to comment Share on other sites More sharing options...
Ron Posted November 15, 2016 Share 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. Link to comment Share on other sites More sharing options...
ricardolb Posted November 16, 2016 Author Share 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. Link to comment Share on other sites More sharing options...
Ron Posted November 18, 2016 Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now