Jump to content

Retain scrollbar positions when treegrid data is refreshed


PascalVBr

Recommended Posts

Hi, I hope someone can help me with this...

Situation: I have a TuniDBTreeGrid object with a relatively large amount of rows displayed. The rows occupy more space than available in the viewport, hence a vertical scrollbar is visible.

Current behaviour: Scroll down to a random position, then refresh the data (the number of rows does not change btw) -> result: the scrollbar of the treegrid scrolls back to the top.

Wanted behaviour: Scroll down to a random position, then refresh the data -> result: the scrollbar stays at its position (or - if not possible - is set back to the original position, which produces the same end result).

Same question for the horizontal scrollbar...

Any help is greatly appreciated :)

Link to comment
Share on other sites

Ok, so in the small test case that I made with the latest build (1.90) of uniGUI the scrollbar position IS retained!?

I checked if there were some differences  between the  DFM's of the project I made with 1.70 and 1.90 and there are. For example the way the ClientEvents are stored in the DFM are different between 1.70 and 1.90. But if I copy the ClientEvents from a 1.90 DFM to a 1.70 DFM it does not seem to work (ClientEvents get ignored by the application).

It looks like the behaviour is different between 1.70 and 1.90. If so, how can I get the correct scrollbar behaviour in the form that I made with 1.70 but am building with 1.90 now?

Link to comment
Share on other sites

  • Administrators
On 6/24/2019 at 7:53 PM, PascalVBr said:

I already found 1 reason why the scrollbar goes back to the top: it happens when changing something to the column headers (caption, font style,...). Imo this is a bug.

I think this is a trivial issue for your POC development. Even if we fix this issue, it will be only available in commercial builds not the trial edition.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...