Guest Posted November 16, 2010 Share Posted November 16, 2010 Message from: "Imagina" Hello there Supose the following scenario: [1] Block code to create 300 TUniPanels in runtime [2] Issue WebForm.LayoutChanged := True; [3] Issue i := 1; [4] Panels are showed in web browser Enabling trace, between pass [1] and pass [3] the gap time is minimal, less than 300ms; but between pass [3] and pass [4] there are a gap of 10 seconds. There are any state property to know when "LayoutChanged" has finished and the page has been updated? Thank you . Quote Link to comment Share on other sites More sharing options...
Guest Posted November 22, 2010 Author Share Posted November 22, 2010 Message from: "Farshad Mohajeri" "Imagina" > Hello there > > Supose the following scenario: > > [1] Block code to create 300 TUniPanels in runtime > [2] Issue WebForm.LayoutChanged := True; > [3] Issue i := 1; > [4] Panels are showed in web browser > > Enabling trace, between pass [1] and pass [3] the gap time is minimal, > less > than 300ms; but between pass [3] and pass [4] there are a gap of 10 > seconds. > Hello, You don't need to call "WebForm.LayoutChanged := True". It is called by library when it is needed. Render time highly depends on the browser. Are you using firefox? > There are any state property to know when "LayoutChanged" has finished and > the page has been updated? Why do you need a "state"? Do you want to know when render is finished? Please explain. . Quote Link to comment Share on other sites More sharing options...
Guest Posted November 23, 2010 Author Share Posted November 23, 2010 Message from: "Imagina" "Farshad Mohajeri" wrote in news:veX$VWiiLHA.2080@anaxagvs227: Hello Farshad Yes, I want to know when render is finished, because between create 100 controls in runtime and the controls are showed there are a delay of 5 or 10 seconds (no matter if IE or Firefox or Chrome), and I must control it. Thanks > > "Imagina" >> Hello there >> >> Supose the following scenario: >> >> [1] Block code to create 300 TUniPanels in runtime >> [2] Issue WebForm.LayoutChanged := True; >> [3] Issue i := 1; >> [4] Panels are showed in web browser >> >> Enabling trace, between pass [1] and pass [3] the gap time is >> minimal, less >> than 300ms; but between pass [3] and pass [4] there are a gap of 10 >> seconds. >> > > Hello, > > You don't need to call "WebForm.LayoutChanged := True". It is called > by library when it is needed. > Render time highly depends on the browser. Are you using firefox? > >> There are any state property to know when "LayoutChanged" has >> finished and the page has been updated? > > Why do you need a "state"? Do you want to know when render is > finished? Please explain. > > > > . Quote Link to comment Share on other sites More sharing options...
Guest Posted November 25, 2010 Author Share Posted November 25, 2010 Message from: "Farshad Mohajeri" "Imagina" wrote in message news:Xns9E396A0C2CC98josepatimaginaisnet@178.63.126.146... > "Farshad Mohajeri" wrote in > news:veX$VWiiLHA.2080@anaxagvs227: > Hello Farshad > > Yes, I want to know when render is finished, because between create 100 > controls in runtime and the controls are showed there are a delay of 5 > or 10 seconds (no matter if IE or Firefox or Chrome), and I must control > it. > We have OnRender event for Ext JS controls but I'm not sure if it is fired at the right moment. Why do you want to control it? BTW, in future releases I will try to improve render time when a big number of controls are inserted at runtime. . Quote Link to comment Share on other sites More sharing options...
Guest Posted November 25, 2010 Author Share Posted November 25, 2010 Message from: "Imagina" "Farshad Mohajeri" wrote in news:Qb8HQvHjLHA.2084@anaxagvs227: To show to user a progress status, by example. We are evaluating uniGui to porting our ERP to web and all of his forms and his controls are created at runtime (is a dictionary based like Axapta or Sage X3). Thanks > > "Imagina" wrote in message > news:Xns9E396A0C2CC98josepatimaginaisnet@178.63.126.146... >> "Farshad Mohajeri" wrote in >> news:veX$VWiiLHA.2080@anaxagvs227: >> Hello Farshad >> >> Yes, I want to know when render is finished, because between create >> 100 controls in runtime and the controls are showed there are a delay >> of 5 or 10 seconds (no matter if IE or Firefox or Chrome), and I must >> control it. >> > > We have OnRender event for Ext JS controls but I'm not sure if it is > fired at the right moment. > Why do you want to control it? > > BTW, in future releases I will try to improve render time when a big > number of controls are inserted at runtime. > > > . Quote Link to comment Share on other sites More sharing options...
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.