Tree type structure in a datagrid

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: Klaus, FourthWorld, heatherlaine, kevinmiller, robinmiller

Post Reply
jon@armasoft.co.uk
Posts: 19
Joined: Mon Apr 18, 2016 10:31 am

Tree type structure in a datagrid

Post by jon@armasoft.co.uk » Mon Jul 31, 2017 12:37 pm

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?

jon@armasoft.co.uk
Posts: 19
Joined: Mon Apr 18, 2016 10:31 am

Re: Tree type structure in a datagrid

Post by jon@armasoft.co.uk » Tue Aug 01, 2017 11:23 am

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.

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 4919
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Tree type structure in a datagrid

Post by dunbarx » Tue Aug 01, 2017 2:54 pm

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

Post Reply

Return to “Talking LiveCode”