Table scrolls down when it loads the data

Find and share HowTos to various installations / configurations!
Search

Post Reply
3 posts • Page 1 of 1
genkihenkie
Posts: 10
Joined: Thu Oct 27, 2016 2:24 pm

Table scrolls down when it loads the data

Post by genkihenkie »

I have a table which fills with all the running and scheduled observations.
Which was perfect when it was 4 or 5 observations that where scheduled, nice and uncomplicated looking.

But now people are actually using the system, and the table fills up to roughly 250 scheduled observations.
And as an observation can be scheduled every moment, it looks for new observations and fills it up ~ every 20 seconds.

The annoying thing with this many scheduled runs is the scrollbar flips down then to the last entry, the observations that will start in a few days.
I want the table to stay up, not scroll down, because the observations that are running and will start are on top.

Is there an easy way to make sure it stays on top of the scrollbar, and not scroll down when it reloads the table?

LIGO
Posts: 27
Joined: Tue Aug 02, 2016 1:57 pm

Re: Table scrolls down when it loads the data

Post by LIGO »

Hi,

it's possible to point the table to a defined position with a "lineVisible" property. You can use it right after updating your table.

Code: Select all

TABLE1.lineVisible(0);
Moreover, there is a property "lineRangeVisible" which returns currently visible range. You might want to use it for even smoother user experience.

Best regards,
Leonid Solovev

User avatar
kilianvp
Posts: 443
Joined: Fri Jan 16, 2015 10:29 am

Re: Table scrolls down when it loads the data

Post by kilianvp »

You can do

Code: Select all

TABLE1.stop(true);
if you have 3.15 Patch 3 or newer or 3.16


3.15 Patch 3 Readme
12177/1-4307106596, 21723/1-4775628885: Now it is possible to prevent
a table from automatic scrolling to the bottom when lines are
inserted or updated by using the "stop" attribute, e.g.
"<tableShape>.stop(true);".

Post Reply
3 posts • Page 1 of 1