Hi Everyone,
I'm stumped. I need the ability to scroll my datagrid to a particular [element #] of its dgData property. Can someone please help me how to approach it?
Thanks,
Tom
Scoll Datagrid to a specific key/element in its dgData array
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Scoll Datagrid to a specific key/element in its dgData array
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
-
- VIP Livecode Opensource Backer
- Posts: 9669
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Scoll Datagrid to a specific key/element in its dgData a
Hi.
Play with the "scrollLineIntoView" and "scrollIndexIntoView" commands. The first takes one parameter, the line number of interest. Finding the line that the text you need is on can be done in several ways.
Craig Newman
Play with the "scrollLineIntoView" and "scrollIndexIntoView" commands. The first takes one parameter, the line number of interest. Finding the line that the text you need is on can be done in several ways.
Craig Newman
Re: Scoll Datagrid to a specific key/element in its dgData a
Whoa.....my mistake to think that there is no way its a built in function. not the first time I was so pleasantly surprised with LiveCode. #mybad Thanks Craig.
Founder & Developer @ MakeShyft R.D.A - https://www.makeshyft.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com
Build Software with AppStarterStack for Livecode - https://www.AppStarterStack.com
Save Time with The Time Saver's Toolbox - https://www.TimeSaversToolbox.com