Page 1 of 1

Scroll a grid with a button or script?

Posted: Wed Jun 17, 2015 12:44 pm
by jwurst
I have a screen that has an ordinary subfile grid with a working scroll bar. I'm being asked to remove the scroll bar and add image buttons to make the subfile page up/page down. Is there any way to use a button to issue page up/page down commands to a grid? I know it can be done by making the program load the subfile one page at a time, but I really don't want to go there.

Thanks for any help.

Re: Scroll a grid with a button or script?

Posted: Wed Jun 17, 2015 1:41 pm
by Scott Wagers
Jeff,

You can set the scrollbar property to 'none' and enable the paging controls property. This will add a Previous/Next option to the subfile to allow the page up/down control to your subfile.

Would something like this work?

Re: Scroll a grid with a button or script?

Posted: Wed Jun 17, 2015 2:21 pm
by jwurst
That's the general idea of what I want, but the boss wants some particular graphics to match another application.

It could be that I'll have to tell him he can't have what he wants, but it seems like it ought it be possible.

Re: Scroll a grid with a button or script?

Posted: Thu Jun 18, 2015 10:08 am
by jwurst
I managed to accomplish what I needed by overriding the CSS styles for the built in paging functions