Page 1 of 1

possible bug in Data Grid with a checkbox

Posted: Thu Jan 22, 2015 5:02 am
by keram
Hello,

I'd like to get some feedback on this annoying behavior in the Data Grid with a checkbox - it's probably a bug of the DG itself.

When the text in a row is long and part of it (even 1 line) is not visible, is below the bottom edge of the Data Grid then when selecting its checkbox the row jumps up and the checkbox remains unselected. Once the row is fully visible one can select the checkbox. Try to select the checkbox in row number 4 in the attached stack.

Similar thing is happening when you try to disselect the checkbox - select and unselect the checkbox for row 3, scroll all the way up so that the row 4 is not fully visible and then try to uncheck the checkbox 4 - again the row 4 jumps up and the checkbox remains as it was.
See the attached screen capture video; sorry for fuzzy quality but I had to keep the attachment small.

Any ideas why this is happening?

keram

Re: possible bug in Data Grid with a checkbox

Posted: Fri Jan 23, 2015 2:04 am
by keram
Yes, it's a bug in the data grid - confirmed.
http://quality.runrev.com/show_bug.cgi?id=14430

Re: possible bug in Data Grid with a checkbox

Posted: Fri Jan 30, 2015 3:23 am
by keram
Hi,

I've got this problem clarified by Heather and Elanor from RunRev (see the above link).
Heather writes:
"...and asked our team to look into it. I see that in fact this is not so much a
bug as just wrongly documented,"

Elanor writes:
"The reason that this is happening is because when you click on a row in the
datagrid it scrolls fully into view, this results in the checkbox moving and
therefore it does not receive the mouseUp message which causes it to
highlight(or unhighlight). The mouseUp message is not sent if the control under
the mouse changes after mouseDown, instead the mouseRelease message is sent.
The mouseRelease message does not cause a checkbox to highlight(or
unhighlight).

This issue can be solved by setting the property of the DataGrid which
specifies whether rows should scroll into view when they are highlighted, you
can do this as follows

set the dgProps["scroll selections into view"] of group "DataGrid 1" of me to false
------------------------------------------------------------------------------------------

So now it's working OK.
See, how lack of documentation can cause headaches? and you still won't find it on this page: http://lessons.runrev.com/s/lessons/m/d ... properties

Re: possible bug in Data Grid with a checkbox

Posted: Fri Jan 30, 2015 3:31 am
by Simon
Would changing the height of the checkbox to the height of the row help?

Simon

Re: possible bug in Data Grid with a checkbox

Posted: Fri Jan 30, 2015 3:49 am
by keram
I did not try, but often the height of the row is really big. Anyway setting the dgProps in the right way fixed the problem.