|Scrolling row into view programmatically [message #1696546]
||Wed, 27 May 2015 08:13
| Marcin Junger
Registered: April 2015
I have an issue with the following command:
SelectRowsCommand(selectionLayer, 0, selectedRowPos, false, false)
The problem is that this command should scroll so that the row is visible, but it scrolls so that the row is "almost" visible - like two or three rows below bottom border of grid.
The background is that i have variable height of row in grid items - and I think this causes the issue. The selectedRowPos is 0-based index of row in data layer. With SelectRowsCommand, proper row is getting selected, but the scrollbar stops a bit to high...
I tried issuing the following command:
but it behaves the same.
I tried adding + 4 into selectedRowPos in ShowRowInViewportCommand, and it seems to scroll my desired row into bottom of the grid... but if I want to see the last row - it does not help in that situation.
Any idea where I could look for some clues?
Is there a way to check if row is displayed? So I could check that and scroll a bit more if not?
Powered by FUDForum
. Page generated in 0.01940 seconds