58
Views
6
Comments
How to make a action ignite when a list is completely drawn
Question

I made a action with a java script to scroll the list automatically.

But the action don't ignite when that I assumed.


I want it to work 

1.when the screen is loaded and the list completely drawn

2.when the contents of the list changes (Only when the list changes)


I tried to use "On Render" Event to do this ,

but it doesn't work.

2020-02-28 09-46-54
Eduardo Jauch

Hello Tenchi,

Could you be more specific?

Did you debug the app? The OnRender is being triggered (it should)? Is your javascript that is not working? Did you tried in Chrome to see if the javascript has any error?

Can you provide a minimum working mobile app that reproduces the problem?

Cheers.

2018-07-18 00-31-01
tenchi sou

Hello Eduardo.


I tried to debug in Chrome, but there was not any error for the javascript.

The javascript is working when I click any buttom to change the list.

(I'm making a app like watsup or Line, and I click the buttom to do a post)


But, when I open the screen, the action runs before the list is shown.


This is the screen

2018-07-18 00-31-01
tenchi sou

the "overflow: scroll;" CSS parameter is in the List "talkList".

2020-02-28 09-46-54
Eduardo Jauch

Hi Tenchi,

The event Render should've being triggered also after the data is rendered AFTER the OnAfterFetch of the list's source.

Is the autoscroll action being called the second rime?

2018-07-18 00-31-01
tenchi sou

Eduardo Jauch wrote:

Hi Tenchi,

The event Render should've being triggered also after the data is rendered AFTER the OnAfterFetch of the list's source.

Is the autoscroll action being called the second rime?

The action is called the second time after the OnAfterFetch.

but it runs in half way of rendering the list, so it just scroll to the half way (not to the bottom)


2018-07-18 00-31-01
tenchi sou

This is screenshot of the second time that autoscroll is called.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.