Datagrid question

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: Datagrid question

Post by marksmithhfx » Tue Aug 25, 2020 4:12 pm

dunbarx wrote:
Tue Aug 25, 2020 4:57 am
Likely does not matter. To be completely safe, use preOpenCard.

Ok thanks. Here's another one. I added the following two lines to preOpenCard in this stack:

Code: Select all

   set the dgprop["show vscrollbar"] of group "Datagrid 1" to false
   set the dgProp["scroll when vscrollbar is hidden"] of group "DataGrid 1" to true
The intent being to hide the scroll bar but make scrolling still possible using trackpad (desktop)/screen (iPhone) swipes. It works as desired in development and when I compile the app for macOS. When I try the iPhone version, no scrolling occurs. Am I missing something?

Thanks
M
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10320
Joined: Wed May 06, 2009 2:28 pm

Re: Datagrid question

Post by dunbarx » Tue Aug 25, 2020 4:44 pm

Hi.

Not sure, as I develop only for desktop. Likely an inclusion. Someone will know...

Craig

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: Datagrid question

Post by marksmithhfx » Wed Aug 26, 2020 9:14 pm

dunbarx wrote:
Tue Aug 25, 2020 4:44 pm
Not sure, as I develop only for desktop. Likely an inclusion. Someone will know...
Our loss :)

If I don't hear from anyone by tomorrow I may just post it under a new heading.

Cheers,
M
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

marksmithhfx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 931
Joined: Thu Nov 13, 2008 6:48 am

Re: Datagrid question

Post by marksmithhfx » Fri Sep 11, 2020 3:46 pm

Klaus wrote:
Wed Aug 19, 2020 4:13 pm
Hi Mark,

I'm afraid the behavior of the row template is NOT in the message path so your dispatch will go into datanirvana as you have experienced. The behavior of the datagrid and the datagrids script are in the message path however.

So maybe put the "addnewrow" handler into the script of the datagrid group itself?
I have done that and it works perfectly. And in the process I learned there was a difference between the row template behavior script and the data grid script. Nuance :)

Cheers and thanks everyone
Mark
macOS 12.6.5 (Monterey), Xcode 14.2, LC 10.0.0, iOS 15.6.1
Targets: Mac, iOS

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7392
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: Datagrid question

Post by jacque » Sat Sep 12, 2020 5:52 pm

go into datanirvana
LOL. I'm going to steal that.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

Klaus
Posts: 14194
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: Datagrid question

Post by Klaus » Sat Sep 12, 2020 5:55 pm

jacque wrote:
Sat Sep 12, 2020 5:52 pm
go into datanirvana
LOL. I'm going to steal that.
:D

Post Reply