mterceno Posted June 12, 2018 Share Posted June 12, 2018 Hello, I'm trying to create a sample App with a DBGrid linked to DataSource1 linked to Query and UniDBEdit linked to the same DataSource1. After running the application, when I scroll in DBGrid, UniDBEdit is refreshed with a significant lag compared to DBGrid (see video). How can I optimize this behavior and make it more fluid? Best regards, 2018-06-12 at 09-57-27.zip Link to comment Share on other sites More sharing options...
Sherzod Posted June 12, 2018 Share Posted June 12, 2018 Hello, I'm looking at some demo examples, and I do not see a significant lag Can you make a simple testcase for this if possible ?! Link to comment Share on other sites More sharing options...
mterceno Posted June 12, 2018 Author Share Posted June 12, 2018 Please find a simple example in attachment. I use a ClientDataset. The ClientDataSet contains really more 190 columns but I show only 5 persistents fields. More there visibles fields, more there lags... ExtJS native is more fluid with big DBGridList, why uniGUI is more slowly ? http://examples.sencha.com/extjs/5.1.0/examples/kitchensink/#big-data-grid Best regards, demo_basic_ClientDataSet.zip Link to comment Share on other sites More sharing options...
Sherzod Posted June 12, 2018 Share Posted June 12, 2018 TwwDataSource ? Link to comment Share on other sites More sharing options...
Sherzod Posted June 12, 2018 Share Posted June 12, 2018 What is your version of Delphi? Link to comment Share on other sites More sharing options...
mterceno Posted June 12, 2018 Author Share Posted June 12, 2018 Sorry, we use the components Woll2Woll. I attached the new demo with simple DataSource Regards, Demo.zip Link to comment Share on other sites More sharing options...
mterceno Posted June 12, 2018 Author Share Posted June 12, 2018 What is your version of Delphi? Delphi Tokyo 10.2.3 Link to comment Share on other sites More sharing options...
Sherzod Posted June 12, 2018 Share Posted June 12, 2018 I do not see a significant lag Link to comment Share on other sites More sharing options...
mterceno Posted June 12, 2018 Author Share Posted June 12, 2018 Could you please check with this testcase : - Click the first record - Push Bottom arrow key while 15 sec. - Release the key => You should see the component UniDBEdit refresh himself while somes seconds Do you have this effect ? Link to comment Share on other sites More sharing options...
mhmda Posted June 16, 2018 Share Posted June 16, 2018 Hi, have you debug the app using developers tools in chrom and see the network tab. When u scroll there is ajax request goes to the server to tell him about current record and the server also updates your edit with the desired value. If your network has issues then this will affect the performance. The best solution is tp use client side code to update the edit text, I always use that especially when I do search on the grid. 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