Hi Johan,
Thank you for your reply.
I was trying to build a chat using listformcomponent. To show the last message in a (normal) chat I need to scroll to the bottom of the list.
Since I could not build it using listformcomponent, I moved to building the chat in the aggrid. When you learn how to style the aggrid, it can look very nice
There if i set the foundset's selectedIndex to the last record, scroll goes down to the bottom, although it often jumps a couple of records up.
- Code: Select all
//i build my qb
foundset.loadRecords(qb)
var size = databaseManager.getFoundSetCount(foundset)
foundset.setSelectedIndex(size)
It is an aggrid based on the form foundset, and I have max 50 records.
I tried with running this piece of code in the onShow of the chat form, also before showing the chat form, and in both cases I get the same jumpy behavior.
Any ideas in how to eliminate that will be very appreciated.
Thank you,
Diana