Disabling table widget auto scroll when a new entry is added

Discussion about recent product features & solutions!
3 posts • Page 1 of 1
ozangor
Posts:44
Joined: Thu Sep 22, 2011 2:57 pm

Disabling table widget auto scroll when a new entry is added

Post by ozangor »

Hi there,

I need to stop autoscrolling of the table widget when a new row is added via appendLine or insertLineN function. Whenever I call either of these functions, table scroll automatically moves to the location where the entry is added. How do I possibly disable this functionality in order to keep the scrollbar in the same line location?

Thanks in advance.

leoknipp
Posts:2928
Joined: Tue Aug 24, 2010 7:28 pm

Re: Disabling table widget auto scroll when a new entry is added

Post by leoknipp »

You can try if the attribute "updatesEnabled" helps to solve the problem.
Otherwise you can
-- get the current visible line range
-- save the information
-- make the changes in the table
-- scroll back to the saved visible line range

Best Regards
Leopold Knipp
Senior Support Specialist

ozangor
Posts:44
Joined: Thu Sep 22, 2011 2:57 pm

Re: Disabling table widget auto scroll when a new entry is added

Post by ozangor »

Hi Leopold, happy new year!

I found the answer in another thread, forgot to update here. There is an attribute called "stop" for the table widget but it is not documented. That solved my problem.

3 posts • Page 1 of 1