Page 1 of 1

Tree type structure in a datagrid

Posted: Mon Jul 31, 2017 12:37 pm
by jon@armasoft.co.uk
I'm trying to create a tree type structure within a datagrid similar to image 5 in http://lessons.livecode.com/m/datagrid/ ... e-examples, but am at a loss where to start.

The example suggests that you can split a datagrid into sections which can be expanded/collapsed by ticking a box, but I can't find any example code or lesson explaining the concept.

Could someone please help?

Re: Tree type structure in a datagrid

Posted: Tue Aug 01, 2017 11:23 am
by jon@armasoft.co.uk
Looks like I'll be able to do what I want by modifying the 'LayoutControl' of the behaviour script and adding some 'dummy' records into the data when changing section.

Re: Tree type structure in a datagrid

Posted: Tue Aug 01, 2017 2:54 pm
by dunbarx
Hi.

I see, and hope, you have found your own solution.

I know your question languished for a while. I only post to tell you that most helpers here (except perhaps Klaus) shy away from rushing in to answer DG questions. Anyway, i do. DG's are complicated, and when I see a query about them, I tend to immediately look for easier fare. :wink:

Craig newman