jahlxx Posted July 26, 2017 Posted July 26, 2017 Hi. I've a unidbgrid, and in my sample, when click in the first column I do this; qt.edit; qt.fieldbyname('sel').asboolean .= not qt.fieldbyname('sel').asboolean; qt.post; everything is OK, but every time I do thois, the message "Loading data ..." appears, and is a delay. is not many time, but this is a simple edit of a column and soluld be inmediate, but there is a delay. I use unidac components to access database. is this behaviour ok? Quote
Sherzod Posted July 26, 2017 Posted July 26, 2017 Hi, Maybe you need to change the logic? Can you explain, for what purpose do you need it? Quote
jahlxx Posted July 26, 2017 Author Posted July 26, 2017 check / uncheck rows in vcl apps, is inmediate. after post the control returns to user inmediately. the dataset is localupdate. Quote
Sherzod Posted July 26, 2017 Posted July 26, 2017 is this behaviour ok? Actually it is a normal behavior. Quote
Administrators Farshad Mohajeri Posted July 26, 2017 Administrators Posted July 26, 2017 Hi. I've a unidbgrid, and in my sample, when click in the first column I do this; qt.edit; qt.fieldbyname('sel').asboolean .= not qt.fieldbyname('sel').asboolean; qt.post; everything is OK, but every time I do this, the message "Loading data ..." appears, and is a delay. is not many time, but this is a simple edit of a column and soluld be inmediate, but there is a delay. I use unidac components to access database. is this behaviour ok? Does it actually load data? Do you click on a checkbox? Quote
jahlxx Posted July 26, 2017 Author Posted July 26, 2017 yes, click in a checkbox. and load data, but dhold load nothing. the dataset is localupdate Enviado desde mi SM-A500FU mediante Tapatalk Quote
jahlxx Posted July 26, 2017 Author Posted July 26, 2017 should load nothing Enviado desde mi SM-A500FU mediante Tapatalk Quote
Administrators Farshad Mohajeri Posted July 26, 2017 Administrators Posted July 26, 2017 You can use AutoPost option of check columns. You don't need to manually change and post data. Quote
jahlxx Posted July 26, 2017 Author Posted July 26, 2017 ok. testing but, how check / uncheck? I click the field, but does nothing. ???? Quote
Sherzod Posted July 27, 2017 Posted July 27, 2017 Hi, Can you make a testcase with screenshots, showing where the problem is ? Quote
jahlxx Posted July 27, 2017 Author Posted July 27, 2017 Is dificult. How autopost works?; I set the autopost of the column to true, but when click, the value don't change.. I am missing something, but don't know what- Quote
Administrators Farshad Mohajeri Posted July 27, 2017 Administrators Posted July 27, 2017 Please see the related demo. ..\Desktop\GridCheckBox Quote
Sherzod Posted July 27, 2017 Posted July 27, 2017 Have you seen the demo examples - grid with checkboxes? Quote
jahlxx Posted July 27, 2017 Author Posted July 27, 2017 ok. problem detected. when the grid has summary, allways has the behaviour I commented before. even when the summary procedure (calctotals) does nothing. Quote
Administrators Farshad Mohajeri Posted August 1, 2017 Administrators Posted August 1, 2017 Yes. It happens because unigui can not know if the changed row affects the summary data or not. That's why it needs to refresh the grid. Sent from my SM-N900 using Tapatalk 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.