Topic: Tablegrid scrolling problem

Good Evening Dmitry,
This may be a small bug or the way my script works.
1.  For each row in my tablegrid, I make an sqlexecute call to retrieve some text to display in a memo field.
2.  When I click on the next row down, the text in the memo field changes.
3.  This works until you reach the last VISIBLE row on the grid (the row BEFORE the grid starts scrolling down).
4.  From this row onwards, the text in the memo field no longer changes.
5.  To work around this, you need to click 'scroll-down' to move the whole grid down 1 row and then click on the row again.
6.  I have changed the design of the form, giving the tablegrid less and more rows and the problem always repeats wherever the last VISIBLE row occurs.
It seems as if MVD cannot determine the tablegrid.dbItemId after the last VISIBLE row in the tablegrid. 
I have attached my project so you can see the problem.  I am currently using Version 1.50.
Thanks,
Derek.

Post's attachments

Attachment icon dmitry purchase orders.zip 351.07 kb, 479 downloads since 2015-03-26 

Re: Tablegrid scrolling problem

Hello,


Indeed, there is some error.


Try to increase the height of the component by 8 pixels.


Or instead event OnCellClick try to use event OnMouseUp



Thanks.

Dmitry.

Re: Tablegrid scrolling problem

Hi Dmitry,
I've changed the grid height and replaced oncellclick with onmouseup.  I've also added onkeyup and onkeydown events on the 3 tablegrids (so it can be used with combinations of keyboard and mouse) and everything appears to be scrolling and updating/refreshing correctly now.
Thanks for your help,
Derek.