Important! A new Community experience launched on September 26, 2017. Read more about it here or continue to Base Camp.
Vote up!
0 Votes
0 Replies

Scroll to top of a segment

Question asked by Kaustav Ghosh on Mar 04, 2017 13:44 EST

Hi Team, I want to scroll to top of a segment when I click on the header of my form or a button in my form. Here is my code:   this.gotoTop = function(){ kony.print("Called"); frmName.scrollToBeginning(); frmName.segmentPayments.selectedIndex=[0,0]; kony.print("Index-->"+frmName.segmentPayments.selectedIndex); frmName.forceLayout(); }​ But unfortunately the above code is not working.My form structure is: form--->flex1,flex2,flex3 flex1--->segment I have enabled scrolling for the form. Please help.I need to solve this in an urgent basis.

Posted In
Kony Inc Kony Studio