Javi Posted January 5, 2012 Posted January 5, 2012 Hello I have a form with autoscroll to true. How I can get the scroll up at all? Thanks ------------------------------------------- Hola Tengo un formulario con autoscroll a true. ¿Cómo yo puedo poner el scroll arriba del todo? Gracias Quote
Javi Posted January 6, 2012 Author Posted January 6, 2012 A little more graphic. How I can do this? Thanks --------------------------------------------- Un poco más grafico. ¿ Como puedo yo hacer esto ? Gracias Quote
Administrators Farshad Mohajeri Posted January 6, 2012 Administrators Posted January 6, 2012 I'm not aware of any API function which can achieve this. Quote
Javi Posted January 7, 2012 Author Posted January 7, 2012 I have found how to do Self.WebForm.ExtForm.Body.ScrollTo('Top', 0); Quote
Administrators Farshad Mohajeri Posted January 7, 2012 Administrators Posted January 7, 2012 I have found how to do Self.WebForm.ExtForm.Body.ScrollTo('Top', 0); Great. Thanks for update. Yes Body is the correct target. I tried it on Form "el" and it didn't work. FYI here is the JS equivalent: MainForm.form.body.scrollTo('top', 0); Quote
dionel1969 Posted January 7, 2012 Posted January 7, 2012 Great. Thanks for update. Yes Body is the correct target. I tried it on Form "el" and it didn't work. FYI here is the JS equivalent: MainForm.form.body.scrollTo('top', 0); It means 'left' and 'right' must work too or not??? Quote
Administrators Farshad Mohajeri Posted January 7, 2012 Administrators Posted January 7, 2012 top and left are valid keywords here. Quote
Javi Posted January 9, 2012 Author Posted January 9, 2012 Great. Thanks for update. Yes Body is the correct target. I tried it on Form "el" and it didn't work. FYI here is the JS equivalent: MainForm.form.body.scrollTo('top', 0); Works for me MainForm.Form.Body.ScrollTo ('Top', 0); UniServerModule > MainFormDisplayMode = mfPage MainForm > AutoScroll = True ------------------------------------ A mi me funciona MainForm.Form.Body.ScrollTo('Top', 0); UniServerModule > MainFormDisplayMode = mfPage MainForm > AutoScroll = True Quote
Ronak Posted October 20, 2014 Posted October 20, 2014 how can I scroll mainform to top with JSFORM instead of Self.WebForm.ExtForm.Body.ScrollTo('Top', 0) Self.WebForm.JsForm.... Quote
Administrators Farshad Mohajeri Posted October 20, 2014 Administrators Posted October 20, 2014 uses ..., uniGUIJSInterface; (WebForm as IUniJSInterface).JSCall('body.scrollTo', ['top', 0], WebForm.JSForm); Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.