Page 2 of 2
Re: Datagrid question
Posted: Tue Aug 25, 2020 4:12 pm
by marksmithhfx
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
Re: Datagrid question
Posted: Tue Aug 25, 2020 4:44 pm
by dunbarx
Hi.
Not sure, as I develop only for desktop. Likely an inclusion. Someone will know...
Craig
Re: Datagrid question
Posted: Wed Aug 26, 2020 9:14 pm
by marksmithhfx
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
Re: Datagrid question
Posted: Fri Sep 11, 2020 3:46 pm
by marksmithhfx
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
Re: Datagrid question
Posted: Sat Sep 12, 2020 5:52 pm
by jacque
go into datanirvana
LOL. I'm going to steal that.
Re: Datagrid question
Posted: Sat Sep 12, 2020 5:55 pm
by Klaus
jacque wrote: Sat Sep 12, 2020 5:52 pm
go into datanirvana
LOL. I'm going to steal that.
