Page 1 of 1

Shortcut Key for Row Expand/Collapse

Posted: Wed Apr 09, 2014 12:14 pm
by DaveLClarkI
I see the properties to support grid row expand (SFLFOLD) and collapse (SFLDROP), but I don't see how I can assign a shortcut key (e.g., CA08 or CF08) to open and close the fold. How is this done and is this found in the Profound documentation somewhere? Thanks.

Re: Shortcut Key for Row Expand/Collapse

Posted: Wed Apr 09, 2014 12:28 pm
by David
I don't think there is a way to assign a shortcut key to this directly on the grid.

However, there is this API which will toggle the expanded/collapsed state:

http://www.profoundlogic.com/docs/displ ... ggle%28%29

This can be assigned to run from the click event of a button, or an icon, which can have a shortcut key.

Re: Shortcut Key for Row Expand/Collapse

Posted: Wed Apr 09, 2014 12:37 pm
by DaveLClarkI
OK, I was wondering because (to give myself more information) I created a green-screen version and converted it to a Profound rich display file. In launch preview mode my function key opens and closes the fold but I can't see anything in design mode which would support that. Color me curious as to how this is being accomplished?

Re: Shortcut Key for Row Expand/Collapse

Posted: Wed Apr 09, 2014 12:45 pm
by David
It should have put a +/- icon on the subfile, which has the JavaScript API mentioned set to run onclick. Is it not there?

Re: Shortcut Key for Row Expand/Collapse

Posted: Wed Apr 09, 2014 1:49 pm
by DaveLClarkI
Ah, now I see it. That is where the shortcut key is assigned, too. Thanks.